@keystrokehq/radar 0.1.2 → 0.1.4
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/actions/autocomplete-address-or-place.cjs +4 -4
- package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.cts +4 -4
- package/dist/actions/autocomplete-address-or-place.d.mts +4 -4
- package/dist/actions/autocomplete-address-or-place.mjs +4 -4
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +4 -4
- package/dist/actions/create-beacon.cjs.map +1 -1
- package/dist/actions/create-beacon.d.cts +4 -4
- package/dist/actions/create-beacon.d.mts +4 -4
- package/dist/actions/create-beacon.mjs +4 -4
- package/dist/actions/create-beacon.mjs.map +1 -1
- package/dist/actions/create-trip.cjs +1 -1
- package/dist/actions/create-trip.cjs.map +1 -1
- package/dist/actions/create-trip.d.cts +1 -1
- package/dist/actions/create-trip.d.mts +1 -1
- package/dist/actions/create-trip.mjs +1 -1
- package/dist/actions/create-trip.mjs.map +1 -1
- package/dist/actions/delete-beacon.cjs +2 -2
- package/dist/actions/delete-beacon.cjs.map +1 -1
- package/dist/actions/delete-beacon.d.cts +2 -2
- package/dist/actions/delete-beacon.d.mts +2 -2
- package/dist/actions/delete-beacon.mjs +2 -2
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +2 -2
- package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.cts +2 -2
- package/dist/actions/delete-geofence-by-tag.d.mts +2 -2
- package/dist/actions/delete-geofence-by-tag.mjs +2 -2
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +2 -2
- package/dist/actions/delete-geofence.cjs.map +1 -1
- package/dist/actions/delete-geofence.d.cts +2 -2
- package/dist/actions/delete-geofence.d.mts +2 -2
- package/dist/actions/delete-geofence.mjs +2 -2
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +2 -2
- package/dist/actions/delete-trip.cjs.map +1 -1
- package/dist/actions/delete-trip.d.cts +2 -2
- package/dist/actions/delete-trip.d.mts +2 -2
- package/dist/actions/delete-trip.mjs +2 -2
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +2 -2
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +2 -2
- package/dist/actions/delete-user.d.mts +2 -2
- package/dist/actions/delete-user.mjs +2 -2
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +3 -3
- package/dist/actions/forward-geocode.cjs.map +1 -1
- package/dist/actions/forward-geocode.d.cts +3 -3
- package/dist/actions/forward-geocode.d.mts +3 -3
- package/dist/actions/forward-geocode.mjs +3 -3
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +2 -2
- package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.cts +2 -2
- package/dist/actions/get-beacon-by-tag.d.mts +2 -2
- package/dist/actions/get-beacon-by-tag.mjs +2 -2
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +4 -4
- package/dist/actions/get-beacon.cjs.map +1 -1
- package/dist/actions/get-beacon.d.cts +4 -4
- package/dist/actions/get-beacon.d.mts +4 -4
- package/dist/actions/get-beacon.mjs +4 -4
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +16 -16
- package/dist/actions/get-context-for-location.cjs.map +1 -1
- package/dist/actions/get-context-for-location.d.cts +16 -16
- package/dist/actions/get-context-for-location.d.mts +16 -16
- package/dist/actions/get-context-for-location.mjs +16 -16
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +3 -3
- package/dist/actions/get-geofence.cjs.map +1 -1
- package/dist/actions/get-geofence.d.cts +3 -3
- package/dist/actions/get-geofence.d.mts +3 -3
- package/dist/actions/get-geofence.mjs +3 -3
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +3 -3
- package/dist/actions/get-places-settings.cjs.map +1 -1
- package/dist/actions/get-places-settings.d.cts +3 -3
- package/dist/actions/get-places-settings.d.mts +3 -3
- package/dist/actions/get-places-settings.mjs +3 -3
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +9 -9
- package/dist/actions/get-route-directions.cjs.map +1 -1
- package/dist/actions/get-route-directions.d.cts +20 -20
- package/dist/actions/get-route-directions.d.mts +20 -20
- package/dist/actions/get-route-directions.mjs +9 -9
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +6 -6
- package/dist/actions/get-route-matrix.cjs.map +1 -1
- package/dist/actions/get-route-matrix.d.cts +9 -9
- package/dist/actions/get-route-matrix.d.mts +9 -9
- package/dist/actions/get-route-matrix.mjs +6 -6
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +3 -3
- package/dist/actions/get-trip.cjs.map +1 -1
- package/dist/actions/get-trip.d.cts +4 -4
- package/dist/actions/get-trip.d.mts +4 -4
- package/dist/actions/get-trip.mjs +3 -3
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +2 -2
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +2 -2
- package/dist/actions/get-user.d.mts +2 -2
- package/dist/actions/get-user.mjs +2 -2
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +2 -2
- package/dist/actions/get-users-in-geofence.cjs.map +1 -1
- package/dist/actions/get-users-in-geofence.d.cts +2 -2
- package/dist/actions/get-users-in-geofence.d.mts +2 -2
- package/dist/actions/get-users-in-geofence.mjs +2 -2
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +1 -1
- package/dist/actions/ip-geocode.cjs.map +1 -1
- package/dist/actions/ip-geocode.d.cts +1 -1
- package/dist/actions/ip-geocode.d.mts +1 -1
- package/dist/actions/ip-geocode.mjs +1 -1
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +6 -6
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +6 -6
- package/dist/actions/list-events.d.mts +6 -6
- package/dist/actions/list-events.mjs +6 -6
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +5 -5
- package/dist/actions/list-geofences.cjs.map +1 -1
- package/dist/actions/list-geofences.d.cts +5 -5
- package/dist/actions/list-geofences.d.mts +5 -5
- package/dist/actions/list-geofences.mjs +5 -5
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +5 -5
- package/dist/actions/list-trips.cjs.map +1 -1
- package/dist/actions/list-trips.d.cts +6 -6
- package/dist/actions/list-trips.d.mts +6 -6
- package/dist/actions/list-trips.mjs +5 -5
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +3 -3
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -3
- package/dist/actions/list-users.d.mts +3 -3
- package/dist/actions/list-users.mjs +3 -3
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/reverse-geocode.cjs +2 -2
- package/dist/actions/reverse-geocode.cjs.map +1 -1
- package/dist/actions/reverse-geocode.d.cts +2 -2
- package/dist/actions/reverse-geocode.d.mts +2 -2
- package/dist/actions/reverse-geocode.mjs +2 -2
- package/dist/actions/reverse-geocode.mjs.map +1 -1
- package/dist/actions/route-distance.cjs +8 -8
- package/dist/actions/route-distance.cjs.map +1 -1
- package/dist/actions/route-distance.d.cts +23 -23
- package/dist/actions/route-distance.d.mts +23 -23
- package/dist/actions/route-distance.mjs +8 -8
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +3 -3
- package/dist/actions/search-geofences-near-location.cjs.map +1 -1
- package/dist/actions/search-geofences-near-location.d.cts +3 -3
- package/dist/actions/search-geofences-near-location.d.mts +3 -3
- package/dist/actions/search-geofences-near-location.mjs +3 -3
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +6 -6
- package/dist/actions/search-places-near-location.cjs.map +1 -1
- package/dist/actions/search-places-near-location.d.cts +6 -6
- package/dist/actions/search-places-near-location.d.mts +6 -6
- package/dist/actions/search-places-near-location.mjs +6 -6
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +4 -4
- package/dist/actions/search-users-near-location.cjs.map +1 -1
- package/dist/actions/search-users-near-location.d.cts +4 -4
- package/dist/actions/search-users-near-location.d.mts +4 -4
- package/dist/actions/search-users-near-location.mjs +4 -4
- package/dist/actions/search-users-near-location.mjs.map +1 -1
- package/dist/actions/track-location-update.cjs +1 -1
- package/dist/actions/track-location-update.cjs.map +1 -1
- package/dist/actions/track-location-update.d.cts +1 -1
- package/dist/actions/track-location-update.d.mts +1 -1
- package/dist/actions/track-location-update.mjs +1 -1
- package/dist/actions/track-location-update.mjs.map +1 -1
- package/dist/actions/update-places-settings.cjs +3 -3
- package/dist/actions/update-places-settings.cjs.map +1 -1
- package/dist/actions/update-places-settings.d.cts +3 -3
- package/dist/actions/update-places-settings.d.mts +3 -3
- package/dist/actions/update-places-settings.mjs +3 -3
- package/dist/actions/update-places-settings.mjs.map +1 -1
- package/dist/actions/update-trip-by-id.cjs +3 -3
- package/dist/actions/update-trip-by-id.cjs.map +1 -1
- package/dist/actions/update-trip-by-id.d.cts +4 -4
- package/dist/actions/update-trip-by-id.d.mts +4 -4
- package/dist/actions/update-trip-by-id.mjs +3 -3
- package/dist/actions/update-trip-by-id.mjs.map +1 -1
- package/dist/actions/update-trip.cjs +3 -3
- package/dist/actions/update-trip.cjs.map +1 -1
- package/dist/actions/update-trip.d.cts +5 -5
- package/dist/actions/update-trip.d.mts +5 -5
- package/dist/actions/update-trip.mjs +3 -3
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +4 -4
- package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.cts +4 -4
- package/dist/actions/upsert-beacon-by-id.d.mts +4 -4
- package/dist/actions/upsert-beacon-by-id.mjs +4 -4
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +6 -6
- package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.cts +7 -7
- package/dist/actions/upsert-beacon-by-tag.d.mts +7 -7
- package/dist/actions/upsert-beacon-by-tag.mjs +6 -6
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +7 -7
- package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.cts +8 -8
- package/dist/actions/upsert-geofence-by-id.d.mts +8 -8
- package/dist/actions/upsert-geofence-by-id.mjs +7 -7
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +3 -3
- package/dist/actions/upsert-geofence.cjs.map +1 -1
- package/dist/actions/upsert-geofence.d.cts +3 -3
- package/dist/actions/upsert-geofence.d.mts +3 -3
- package/dist/actions/upsert-geofence.mjs +3 -3
- package/dist/actions/upsert-geofence.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ declare const RadarGetUserOutput: z.ZodObject<{
|
|
|
46
46
|
location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
47
|
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
48
48
|
coordinates: z.ZodArray<z.ZodNumber>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
50
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
51
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
52
52
|
geofences: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -63,7 +63,7 @@ declare const RadarGetUserOutput: z.ZodObject<{
|
|
|
63
63
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
locationAccuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
65
|
}, z.core.$loose>>;
|
|
66
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>;
|
|
67
67
|
declare const radarGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
68
68
|
id: string;
|
|
69
69
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -46,7 +46,7 @@ declare const RadarGetUserOutput: z.ZodObject<{
|
|
|
46
46
|
location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
47
|
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
48
48
|
coordinates: z.ZodArray<z.ZodNumber>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
50
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
51
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
52
52
|
geofences: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -63,7 +63,7 @@ declare const RadarGetUserOutput: z.ZodObject<{
|
|
|
63
63
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
64
|
locationAccuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
65
|
}, z.core.$loose>>;
|
|
66
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>;
|
|
67
67
|
declare const radarGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
68
68
|
id: string;
|
|
69
69
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -34,7 +34,7 @@ const RadarGetUser_BeaconInUserSchema = z.object({
|
|
|
34
34
|
const RadarGetUser_GeoJSONPointSchema = z.object({
|
|
35
35
|
type: z.string().default("Point").describe("GeoJSON type, always 'Point'").nullable().optional(),
|
|
36
36
|
coordinates: z.array(z.number()).describe("Coordinates as [longitude, latitude]")
|
|
37
|
-
}).describe("GeoJSON Point representing a geographic location.");
|
|
37
|
+
}).passthrough().describe("GeoJSON Point representing a geographic location.");
|
|
38
38
|
const RadarGetUser_GeofenceInUserSchema = z.object({
|
|
39
39
|
_id: z.string().describe("Unique Radar geofence identifier").nullable(),
|
|
40
40
|
tag: z.string().describe("Tag associated with the geofence").nullable().optional(),
|
|
@@ -71,7 +71,7 @@ const radarGetUser = action("RADAR_GET_USER", {
|
|
|
71
71
|
name: "Get User",
|
|
72
72
|
description: "Tool to get a user by Radar _id, userId, or deviceId. Returns the user with all location and context data including geofences, places, beacons, and trip information.",
|
|
73
73
|
input: RadarGetUserInput,
|
|
74
|
-
output: z.object({ user: RadarGetUser_UserSchema.nullable() }).describe("Response model for GET_USER, containing the user object with all location and context data.")
|
|
74
|
+
output: z.object({ user: RadarGetUser_UserSchema.nullable() }).passthrough().describe("Response model for GET_USER, containing the user object with all location and context data.")
|
|
75
75
|
});
|
|
76
76
|
//#endregion
|
|
77
77
|
export { radarGetUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetUserInput = z.object({\n id: z.string().describe(\"User identifier - can be Radar _id, userId, or deviceId\"),\n}).describe(\"Request model for getting a user by ID.\");\nconst RadarGetUser_TripInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip identifier\").nullable(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the trip\").nullable().optional(),\n externalId: z.string().describe(\"External trip identifier\").nullable().optional(),\n}).passthrough().describe(\"Trip object associated with the user if currently on a trip.\");\nconst RadarGetUser_FraudInUserSchema = z.object({\n proxy: z.boolean().describe(\"Whether the user is using a proxy\").nullable().optional(),\n mocked: z.boolean().describe(\"Whether the location appears to be mocked\").nullable().optional(),\n passed: z.boolean().describe(\"Whether the user passed fraud checks\").nullable().optional(),\n bypassed: z.boolean().describe(\"Whether fraud checks were bypassed\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user has been verified\").nullable().optional(),\n compromisedAt: z.string().describe(\"ISO 8601 timestamp when the user was compromised\").nullable().optional(),\n}).passthrough().describe(\"Fraud detection information for the user.\");\nconst RadarGetUser_PlaceInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar place identifier\").nullable().optional(),\n name: z.string().describe(\"Name of the place\").nullable().optional(),\n chain: z.record(z.string(), z.unknown()).describe(\"Chain information if applicable\").nullable().optional(),\n categories: z.array(z.string()).describe(\"Categories of the place\").nullable().optional(),\n}).passthrough().describe(\"Place object associated with a user's current location.\");\nconst RadarGetUser_BeaconInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar beacon identifier\").nullable(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the beacon\").nullable().optional(),\n major: z.string().describe(\"Major value of the beacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value of the beacon\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object detected near the user.\");\nconst RadarGetUser_GeoJSONPointSchema = z.object({\n type: z.string().default(\"Point\").describe(\"GeoJSON type, always 'Point'\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).describe(\"GeoJSON Point representing a geographic location.\");\nconst RadarGetUser_GeofenceInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar geofence identifier\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the geofence\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n}).passthrough().describe(\"Geofence object associated with a user.\");\nconst RadarGetUser_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar identifier for the user\").nullable(),\n dma: z.record(z.string(), z.unknown()).describe(\"Designated Market Area information\").nullable().optional(),\n live: z.boolean().describe(\"Whether this is a live (not test) user\").nullable().optional(),\n trip: RadarGetUser_TripInUserSchema.nullable().optional(),\n fraud: RadarGetUser_FraudInUserSchema.nullable().optional(),\n place: RadarGetUser_PlaceInUserSchema.nullable().optional(),\n state: z.record(z.string(), z.unknown()).describe(\"State/region information for the user's location\").nullable().optional(),\n userId: z.string().describe(\"Custom unique identifier for the user (may be absent if only deviceId was provided)\").nullable().optional(),\n beacons: z.array(RadarGetUser_BeaconInUserSchema).describe(\"List of beacons detected near the user\").nullable().optional(),\n country: z.record(z.string(), z.unknown()).describe(\"Country information for the user's location\").nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user is currently stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Identifier for the user's device\").nullable().optional(),\n location: RadarGetUser_GeoJSONPointSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the user\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n geofences: z.array(RadarGetUser_GeofenceInUserSchema).describe(\"List of geofences the user is currently inside\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\n deviceType: z.string().describe(\"Type of device (iOS, Android, Web)\").nullable().optional(),\n foreground: z.boolean().describe(\"Whether the app was in foreground for last location update\").nullable().optional(),\n postalCode: z.record(z.string(), z.unknown()).describe(\"Postal code information for the user's location\").nullable().optional(),\n description: z.string().describe(\"Description of the user\").nullable().optional(),\n locationAccuracy: z.number().describe(\"Accuracy of the location in meters\").nullable().optional(),\n}).passthrough().describe(\"Complete user object returned by Radar with all location and context data.\");\nexport const RadarGetUserOutput = z.object({\n user: RadarGetUser_UserSchema.nullable(),\n}).describe(\"Response model for GET_USER, containing the user object with all location and context data.\");\n\nexport const radarGetUser = action(\"RADAR_GET_USER\", {\n slug: \"radar-get-user\",\n name: \"Get User\",\n description: \"Tool to get a user by Radar _id, userId, or deviceId. Returns the user with all location and context data including geofences, places, beacons, and trip information.\",\n input: RadarGetUserInput,\n output: RadarGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,OAAO,EACxC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACnF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,gCAAgC,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,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
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetUserInput = z.object({\n id: z.string().describe(\"User identifier - can be Radar _id, userId, or deviceId\"),\n}).describe(\"Request model for getting a user by ID.\");\nconst RadarGetUser_TripInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip identifier\").nullable(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the trip\").nullable().optional(),\n externalId: z.string().describe(\"External trip identifier\").nullable().optional(),\n}).passthrough().describe(\"Trip object associated with the user if currently on a trip.\");\nconst RadarGetUser_FraudInUserSchema = z.object({\n proxy: z.boolean().describe(\"Whether the user is using a proxy\").nullable().optional(),\n mocked: z.boolean().describe(\"Whether the location appears to be mocked\").nullable().optional(),\n passed: z.boolean().describe(\"Whether the user passed fraud checks\").nullable().optional(),\n bypassed: z.boolean().describe(\"Whether fraud checks were bypassed\").nullable().optional(),\n verified: z.boolean().describe(\"Whether the user has been verified\").nullable().optional(),\n compromisedAt: z.string().describe(\"ISO 8601 timestamp when the user was compromised\").nullable().optional(),\n}).passthrough().describe(\"Fraud detection information for the user.\");\nconst RadarGetUser_PlaceInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar place identifier\").nullable().optional(),\n name: z.string().describe(\"Name of the place\").nullable().optional(),\n chain: z.record(z.string(), z.unknown()).describe(\"Chain information if applicable\").nullable().optional(),\n categories: z.array(z.string()).describe(\"Categories of the place\").nullable().optional(),\n}).passthrough().describe(\"Place object associated with a user's current location.\");\nconst RadarGetUser_BeaconInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar beacon identifier\").nullable(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the beacon\").nullable().optional(),\n major: z.string().describe(\"Major value of the beacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value of the beacon\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object detected near the user.\");\nconst RadarGetUser_GeoJSONPointSchema = z.object({\n type: z.string().default(\"Point\").describe(\"GeoJSON type, always 'Point'\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"GeoJSON Point representing a geographic location.\");\nconst RadarGetUser_GeofenceInUserSchema = z.object({\n _id: z.string().describe(\"Unique Radar geofence identifier\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the geofence\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n}).passthrough().describe(\"Geofence object associated with a user.\");\nconst RadarGetUser_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar identifier for the user\").nullable(),\n dma: z.record(z.string(), z.unknown()).describe(\"Designated Market Area information\").nullable().optional(),\n live: z.boolean().describe(\"Whether this is a live (not test) user\").nullable().optional(),\n trip: RadarGetUser_TripInUserSchema.nullable().optional(),\n fraud: RadarGetUser_FraudInUserSchema.nullable().optional(),\n place: RadarGetUser_PlaceInUserSchema.nullable().optional(),\n state: z.record(z.string(), z.unknown()).describe(\"State/region information for the user's location\").nullable().optional(),\n userId: z.string().describe(\"Custom unique identifier for the user (may be absent if only deviceId was provided)\").nullable().optional(),\n beacons: z.array(RadarGetUser_BeaconInUserSchema).describe(\"List of beacons detected near the user\").nullable().optional(),\n country: z.record(z.string(), z.unknown()).describe(\"Country information for the user's location\").nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user is currently stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Identifier for the user's device\").nullable().optional(),\n location: RadarGetUser_GeoJSONPointSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the user\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n geofences: z.array(RadarGetUser_GeofenceInUserSchema).describe(\"List of geofences the user is currently inside\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\n deviceType: z.string().describe(\"Type of device (iOS, Android, Web)\").nullable().optional(),\n foreground: z.boolean().describe(\"Whether the app was in foreground for last location update\").nullable().optional(),\n postalCode: z.record(z.string(), z.unknown()).describe(\"Postal code information for the user's location\").nullable().optional(),\n description: z.string().describe(\"Description of the user\").nullable().optional(),\n locationAccuracy: z.number().describe(\"Accuracy of the location in meters\").nullable().optional(),\n}).passthrough().describe(\"Complete user object returned by Radar with all location and context data.\");\nexport const RadarGetUserOutput = z.object({\n user: RadarGetUser_UserSchema.nullable(),\n}).passthrough().describe(\"Response model for GET_USER, containing the user object with all location and context data.\");\n\nexport const radarGetUser = action(\"RADAR_GET_USER\", {\n slug: \"radar-get-user\",\n name: \"Get User\",\n description: \"Tool to get a user by Radar _id, userId, or deviceId. Returns the user with all location and context data including geofences, places, beacons, and trip information.\",\n input: RadarGetUserInput,\n output: RadarGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,OAAO,EACxC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACnF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,gCAAgC,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OA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|
|
@@ -10,11 +10,11 @@ const RadarGetUsersInGeofenceInput = zod.z.object({
|
|
|
10
10
|
const RadarGetUsersInGeofence_MetaSchema = zod.z.object({
|
|
11
11
|
code: zod.z.number().int().describe("HTTP status code from the API").nullable(),
|
|
12
12
|
hasMore: zod.z.boolean().describe("Whether there are more results available").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const RadarGetUsersInGeofenceOutput = zod.z.object({
|
|
15
15
|
meta: RadarGetUsersInGeofence_MetaSchema.nullable(),
|
|
16
16
|
users: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of user objects currently in the geofence")
|
|
17
|
-
}).describe("Response model for GET_USERS_IN_GEOFENCE.");
|
|
17
|
+
}).passthrough().describe("Response model for GET_USERS_IN_GEOFENCE.");
|
|
18
18
|
const radarGetUsersInGeofence = require_action.action("RADAR_GET_USERS_IN_GEOFENCE", {
|
|
19
19
|
slug: "radar-get-users-in-geofence",
|
|
20
20
|
name: "Get Users in Geofence",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users-in-geofence.cjs","names":["z","action"],"sources":["../../src/actions/get-users-in-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetUsersInGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence\"),\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500)\").optional(),\n cursor: z.string().describe(\"Pagination cursor to fetch the next page of results\").optional(),\n externalId: z.string().describe(\"External ID of the geofence\"),\n}).describe(\"Request model for GET_USERS_IN_GEOFENCE.\");\nconst RadarGetUsersInGeofence_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n});\nexport const RadarGetUsersInGeofenceOutput = z.object({\n meta: RadarGetUsersInGeofence_MetaSchema.nullable(),\n users: z.array(z.record(z.string(), z.unknown())).describe(\"List of user objects currently in the geofence\"),\n}).describe(\"Response model for GET_USERS_IN_GEOFENCE.\");\n\nexport const radarGetUsersInGeofence = action(\"RADAR_GET_USERS_IN_GEOFENCE\", {\n slug: \"radar-get-users-in-geofence\",\n name: \"Get Users in Geofence\",\n description: \"Tool to retrieve users currently within a specific geofence. Use when you need to list all users inside a geofence by its tag and external ID.\",\n input: RadarGetUsersInGeofenceInput,\n output: RadarGetUsersInGeofenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-users-in-geofence.cjs","names":["z","action"],"sources":["../../src/actions/get-users-in-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetUsersInGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence\"),\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500)\").optional(),\n cursor: z.string().describe(\"Pagination cursor to fetch the next page of results\").optional(),\n externalId: z.string().describe(\"External ID of the geofence\"),\n}).describe(\"Request model for GET_USERS_IN_GEOFENCE.\");\nconst RadarGetUsersInGeofence_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n}).passthrough();\nexport const RadarGetUsersInGeofenceOutput = z.object({\n meta: RadarGetUsersInGeofence_MetaSchema.nullable(),\n users: z.array(z.record(z.string(), z.unknown())).describe(\"List of user objects currently in the geofence\"),\n}).passthrough().describe(\"Response model for GET_USERS_IN_GEOFENCE.\");\n\nexport const radarGetUsersInGeofence = action(\"RADAR_GET_USERS_IN_GEOFENCE\", {\n slug: \"radar-get-users-in-geofence\",\n name: \"Get Users in Geofence\",\n description: \"Tool to retrieve users currently within a specific geofence. Use when you need to list all users inside a geofence by its tag and external ID.\",\n input: RadarGetUsersInGeofenceInput,\n output: RadarGetUsersInGeofenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,mCAAmC,SAAS;CAClD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,9 +11,9 @@ declare const RadarGetUsersInGeofenceOutput: z.ZodObject<{
|
|
|
11
11
|
meta: z.ZodNullable<z.ZodObject<{
|
|
12
12
|
code: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
15
|
users: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const radarGetUsersInGeofence: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
tag: string;
|
|
19
19
|
externalId: string;
|
|
@@ -11,9 +11,9 @@ declare const RadarGetUsersInGeofenceOutput: z.ZodObject<{
|
|
|
11
11
|
meta: z.ZodNullable<z.ZodObject<{
|
|
12
12
|
code: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
15
|
users: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const radarGetUsersInGeofence: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
tag: string;
|
|
19
19
|
externalId: string;
|
|
@@ -10,7 +10,7 @@ const RadarGetUsersInGeofenceInput = z.object({
|
|
|
10
10
|
const RadarGetUsersInGeofence_MetaSchema = z.object({
|
|
11
11
|
code: z.number().int().describe("HTTP status code from the API").nullable(),
|
|
12
12
|
hasMore: z.boolean().describe("Whether there are more results available").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const radarGetUsersInGeofence = action("RADAR_GET_USERS_IN_GEOFENCE", {
|
|
15
15
|
slug: "radar-get-users-in-geofence",
|
|
16
16
|
name: "Get Users in Geofence",
|
|
@@ -19,7 +19,7 @@ const radarGetUsersInGeofence = action("RADAR_GET_USERS_IN_GEOFENCE", {
|
|
|
19
19
|
output: z.object({
|
|
20
20
|
meta: RadarGetUsersInGeofence_MetaSchema.nullable(),
|
|
21
21
|
users: z.array(z.record(z.string(), z.unknown())).describe("List of user objects currently in the geofence")
|
|
22
|
-
}).describe("Response model for GET_USERS_IN_GEOFENCE.")
|
|
22
|
+
}).passthrough().describe("Response model for GET_USERS_IN_GEOFENCE.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { radarGetUsersInGeofence };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users-in-geofence.mjs","names":[],"sources":["../../src/actions/get-users-in-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetUsersInGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence\"),\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500)\").optional(),\n cursor: z.string().describe(\"Pagination cursor to fetch the next page of results\").optional(),\n externalId: z.string().describe(\"External ID of the geofence\"),\n}).describe(\"Request model for GET_USERS_IN_GEOFENCE.\");\nconst RadarGetUsersInGeofence_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n});\nexport const RadarGetUsersInGeofenceOutput = z.object({\n meta: RadarGetUsersInGeofence_MetaSchema.nullable(),\n users: z.array(z.record(z.string(), z.unknown())).describe(\"List of user objects currently in the geofence\"),\n}).describe(\"Response model for GET_USERS_IN_GEOFENCE.\");\n\nexport const radarGetUsersInGeofence = action(\"RADAR_GET_USERS_IN_GEOFENCE\", {\n slug: \"radar-get-users-in-geofence\",\n name: \"Get Users in Geofence\",\n description: \"Tool to retrieve users currently within a specific geofence. Use when you need to list all users inside a geofence by its tag and external ID.\",\n input: RadarGetUsersInGeofenceInput,\n output: RadarGetUsersInGeofenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-users-in-geofence.mjs","names":[],"sources":["../../src/actions/get-users-in-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetUsersInGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence\"),\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500)\").optional(),\n cursor: z.string().describe(\"Pagination cursor to fetch the next page of results\").optional(),\n externalId: z.string().describe(\"External ID of the geofence\"),\n}).describe(\"Request model for GET_USERS_IN_GEOFENCE.\");\nconst RadarGetUsersInGeofence_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n}).passthrough();\nexport const RadarGetUsersInGeofenceOutput = z.object({\n meta: RadarGetUsersInGeofence_MetaSchema.nullable(),\n users: z.array(z.record(z.string(), z.unknown())).describe(\"List of user objects currently in the geofence\"),\n}).passthrough().describe(\"Response model for GET_USERS_IN_GEOFENCE.\");\n\nexport const radarGetUsersInGeofence = action(\"RADAR_GET_USERS_IN_GEOFENCE\", {\n slug: \"radar-get-users-in-geofence\",\n name: \"Get Users in Geofence\",\n description: \"Tool to retrieve users currently within a specific geofence. Use when you need to list all users inside a geofence by its tag and external ID.\",\n input: RadarGetUsersInGeofenceInput,\n output: RadarGetUsersInGeofenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,mCAAmC,SAAS;EAClD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const RadarIpGeocodeOutput = zod.z.object({
|
|
|
15
15
|
stateCode: zod.z.string().describe("State code of the IP address location").nullable().optional(),
|
|
16
16
|
postalCode: zod.z.string().describe("Postal code of the IP address location").nullable().optional(),
|
|
17
17
|
countryCode: zod.z.string().describe("Country code of the IP address location").nullable()
|
|
18
|
-
}).describe("Response model for IP geocoding.");
|
|
18
|
+
}).passthrough().describe("Response model for IP geocoding.");
|
|
19
19
|
const radarIpGeocode = require_action.action("RADAR_IP_GEOCODE", {
|
|
20
20
|
slug: "radar-ip-geocode",
|
|
21
21
|
name: "IP Geocode",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-geocode.cjs","names":["z","action"],"sources":["../../src/actions/ip-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarIpGeocodeInput = z.object({\n ip: z.string().describe(\"The IP address to geocode; defaults to the requester's IP if omitted\").optional(),\n}).describe(\"Request model for IP geocoding.\");\nexport const RadarIpGeocodeOutput = z.object({\n ip: z.string().describe(\"The IP address that was geocoded\").nullable().optional(),\n dma: z.string().describe(\"Designated Market Area of the IP address location\").nullable().optional(),\n city: z.string().describe(\"City of the IP address location\").nullable().optional(),\n state: z.string().describe(\"State or region of the IP address location\").nullable().optional(),\n country: z.string().describe(\"Country of the IP address location\").nullable(),\n dmaCode: z.string().describe(\"DMA code of the IP address location\").nullable().optional(),\n isProxy: z.boolean().describe(\"Indicates if the IP address is a proxy\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the IP address location\").nullable(),\n longitude: z.number().describe(\"Longitude of the IP address location\").nullable(),\n stateCode: z.string().describe(\"State code of the IP address location\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code of the IP address location\").nullable().optional(),\n countryCode: z.string().describe(\"Country code of the IP address location\").nullable(),\n}).describe(\"Response model for IP geocoding.\");\n\nexport const radarIpGeocode = action(\"RADAR_IP_GEOCODE\", {\n slug: \"radar-ip-geocode\",\n name: \"IP Geocode\",\n description: \"Tool to geocode an IP address to city, state, and country. Use when you need location details based on an IP address.\",\n input: RadarIpGeocodeInput,\n output: RadarIpGeocodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,kCAAkC;
|
|
1
|
+
{"version":3,"file":"ip-geocode.cjs","names":["z","action"],"sources":["../../src/actions/ip-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarIpGeocodeInput = z.object({\n ip: z.string().describe(\"The IP address to geocode; defaults to the requester's IP if omitted\").optional(),\n}).describe(\"Request model for IP geocoding.\");\nexport const RadarIpGeocodeOutput = z.object({\n ip: z.string().describe(\"The IP address that was geocoded\").nullable().optional(),\n dma: z.string().describe(\"Designated Market Area of the IP address location\").nullable().optional(),\n city: z.string().describe(\"City of the IP address location\").nullable().optional(),\n state: z.string().describe(\"State or region of the IP address location\").nullable().optional(),\n country: z.string().describe(\"Country of the IP address location\").nullable(),\n dmaCode: z.string().describe(\"DMA code of the IP address location\").nullable().optional(),\n isProxy: z.boolean().describe(\"Indicates if the IP address is a proxy\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the IP address location\").nullable(),\n longitude: z.number().describe(\"Longitude of the IP address location\").nullable(),\n stateCode: z.string().describe(\"State code of the IP address location\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code of the IP address location\").nullable().optional(),\n countryCode: z.string().describe(\"Country code of the IP address location\").nullable(),\n}).passthrough().describe(\"Response model for IP geocoding.\");\n\nexport const radarIpGeocode = action(\"RADAR_IP_GEOCODE\", {\n slug: \"radar-ip-geocode\",\n name: \"IP Geocode\",\n description: \"Tool to geocode an IP address to city, state, and country. Use when you need location details based on an IP address.\",\n input: RadarIpGeocodeInput,\n output: RadarIpGeocodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,7 +17,7 @@ declare const RadarIpGeocodeOutput: z.ZodObject<{
|
|
|
17
17
|
stateCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
countryCode: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const radarIpGeocode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
ip?: string | undefined;
|
|
23
23
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -17,7 +17,7 @@ declare const RadarIpGeocodeOutput: z.ZodObject<{
|
|
|
17
17
|
stateCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
countryCode: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const radarIpGeocode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
ip?: string | undefined;
|
|
23
23
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -18,7 +18,7 @@ const radarIpGeocode = action("RADAR_IP_GEOCODE", {
|
|
|
18
18
|
stateCode: z.string().describe("State code of the IP address location").nullable().optional(),
|
|
19
19
|
postalCode: z.string().describe("Postal code of the IP address location").nullable().optional(),
|
|
20
20
|
countryCode: z.string().describe("Country code of the IP address location").nullable()
|
|
21
|
-
}).describe("Response model for IP geocoding.")
|
|
21
|
+
}).passthrough().describe("Response model for IP geocoding.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { radarIpGeocode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-geocode.mjs","names":[],"sources":["../../src/actions/ip-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarIpGeocodeInput = z.object({\n ip: z.string().describe(\"The IP address to geocode; defaults to the requester's IP if omitted\").optional(),\n}).describe(\"Request model for IP geocoding.\");\nexport const RadarIpGeocodeOutput = z.object({\n ip: z.string().describe(\"The IP address that was geocoded\").nullable().optional(),\n dma: z.string().describe(\"Designated Market Area of the IP address location\").nullable().optional(),\n city: z.string().describe(\"City of the IP address location\").nullable().optional(),\n state: z.string().describe(\"State or region of the IP address location\").nullable().optional(),\n country: z.string().describe(\"Country of the IP address location\").nullable(),\n dmaCode: z.string().describe(\"DMA code of the IP address location\").nullable().optional(),\n isProxy: z.boolean().describe(\"Indicates if the IP address is a proxy\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the IP address location\").nullable(),\n longitude: z.number().describe(\"Longitude of the IP address location\").nullable(),\n stateCode: z.string().describe(\"State code of the IP address location\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code of the IP address location\").nullable().optional(),\n countryCode: z.string().describe(\"Country code of the IP address location\").nullable(),\n}).describe(\"Response model for IP geocoding.\");\n\nexport const radarIpGeocode = action(\"RADAR_IP_GEOCODE\", {\n slug: \"radar-ip-geocode\",\n name: \"IP Geocode\",\n description: \"Tool to geocode an IP address to city, state, and country. Use when you need location details based on an IP address.\",\n input: RadarIpGeocodeInput,\n output: Rad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AAS;CACvF,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"ip-geocode.mjs","names":[],"sources":["../../src/actions/ip-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarIpGeocodeInput = z.object({\n ip: z.string().describe(\"The IP address to geocode; defaults to the requester's IP if omitted\").optional(),\n}).describe(\"Request model for IP geocoding.\");\nexport const RadarIpGeocodeOutput = z.object({\n ip: z.string().describe(\"The IP address that was geocoded\").nullable().optional(),\n dma: z.string().describe(\"Designated Market Area of the IP address location\").nullable().optional(),\n city: z.string().describe(\"City of the IP address location\").nullable().optional(),\n state: z.string().describe(\"State or region of the IP address location\").nullable().optional(),\n country: z.string().describe(\"Country of the IP address location\").nullable(),\n dmaCode: z.string().describe(\"DMA code of the IP address location\").nullable().optional(),\n isProxy: z.boolean().describe(\"Indicates if the IP address is a proxy\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the IP address location\").nullable(),\n longitude: z.number().describe(\"Longitude of the IP address location\").nullable(),\n stateCode: z.string().describe(\"State code of the IP address location\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code of the IP address location\").nullable().optional(),\n countryCode: z.string().describe(\"Country code of the IP address location\").nullable(),\n}).passthrough().describe(\"Response model for IP geocoding.\");\n\nexport const radarIpGeocode = action(\"RADAR_IP_GEOCODE\", {\n slug: \"radar-ip-geocode\",\n name: \"IP Geocode\",\n description: \"Tool to geocode an IP address to city, state, and country. Use when you need location details based on an IP address.\",\n input: RadarIpGeocodeInput,\n output: RadarIpGeocodeOutput,\n});\n"],"mappings":";;AAsBA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBiC,EAAE,OAAO,EAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,iCAoBH;CACP,QApBkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -11,21 +11,21 @@ const RadarListEventsInput = zod.z.object({
|
|
|
11
11
|
beforeId: zod.z.string().describe("Cursor to return events created before this event ID").optional(),
|
|
12
12
|
deviceId: zod.z.string().describe("Filter events by device ID").optional()
|
|
13
13
|
}).describe("Request model for listing events with optional filtering and pagination.");
|
|
14
|
-
const RadarListEvents_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code from the API response").nullable() }).describe("Pagination metadata for list events response.");
|
|
14
|
+
const RadarListEvents_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code from the API response").nullable() }).passthrough().describe("Pagination metadata for list events response.");
|
|
15
15
|
const RadarListEvents_EventUserSchema = zod.z.object({
|
|
16
16
|
_id: zod.z.string().describe("User internal ID").nullable().optional(),
|
|
17
17
|
deviceId: zod.z.string().describe("Device ID associated with the user").nullable().optional()
|
|
18
|
-
}).describe("User information nested within an event.");
|
|
18
|
+
}).passthrough().describe("User information nested within an event.");
|
|
19
19
|
const RadarListEvents_EventGeofenceSchema = zod.z.object({
|
|
20
20
|
_id: zod.z.string().describe("Geofence internal ID").nullable().optional(),
|
|
21
21
|
tag: zod.z.string().describe("Geofence tag").nullable().optional(),
|
|
22
22
|
externalId: zod.z.string().describe("Geofence external ID").nullable().optional(),
|
|
23
23
|
description: zod.z.string().describe("Geofence description").nullable().optional()
|
|
24
|
-
}).describe("Geofence information nested within an event.");
|
|
24
|
+
}).passthrough().describe("Geofence information nested within an event.");
|
|
25
25
|
const RadarListEvents_EventLocationSchema = zod.z.object({
|
|
26
26
|
type: zod.z.string().describe("Location type (e.g., Point)").nullable().optional(),
|
|
27
27
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates [longitude, latitude]").nullable().optional()
|
|
28
|
-
}).describe("Location information nested within an event.");
|
|
28
|
+
}).passthrough().describe("Location information nested within an event.");
|
|
29
29
|
const RadarListEvents_EventSchema = zod.z.object({
|
|
30
30
|
_id: zod.z.string().describe("Unique event identifier").nullable(),
|
|
31
31
|
live: zod.z.boolean().describe("Whether the event is a live event").nullable().optional(),
|
|
@@ -41,11 +41,11 @@ const RadarListEvents_EventSchema = zod.z.object({
|
|
|
41
41
|
sdkVersion: zod.z.string().describe("SDK version").nullable().optional(),
|
|
42
42
|
actualCreatedAt: zod.z.string().describe("Actual creation time in ISO 8601 format").nullable().optional(),
|
|
43
43
|
locationAccuracy: zod.z.number().describe("Location accuracy in meters").nullable().optional()
|
|
44
|
-
}).describe("Represents a single event object.");
|
|
44
|
+
}).passthrough().describe("Represents a single event object.");
|
|
45
45
|
const RadarListEventsOutput = zod.z.object({
|
|
46
46
|
meta: RadarListEvents_MetaSchema.nullable(),
|
|
47
47
|
events: zod.z.array(RadarListEvents_EventSchema).describe("List of event objects")
|
|
48
|
-
}).describe("Response model for LIST_EVENTS, containing events and pagination metadata.");
|
|
48
|
+
}).passthrough().describe("Response model for LIST_EVENTS, containing events and pagination metadata.");
|
|
49
49
|
const radarListEvents = require_action.action("RADAR_LIST_EVENTS", {
|
|
50
50
|
slug: "radar-list-events",
|
|
51
51
|
name: "List Events",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events.cjs","names":["z","action"],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListEventsInput = z.object({\n end: z.string().describe(\"Return events created before this ISO 8601 timestamp\").optional(),\n type: z.string().describe(\"Filter events by event type\").optional(),\n limit: z.number().int().describe(\"Maximum number of events to return (1-500)\").optional(),\n start: z.string().describe(\"Return events created after this ISO 8601 timestamp\").optional(),\n userId: z.string().describe(\"Filter events by user ID\").optional(),\n afterId: z.string().describe(\"Cursor to return events created after this event ID\").optional(),\n beforeId: z.string().describe(\"Cursor to return events created before this event ID\").optional(),\n deviceId: z.string().describe(\"Filter events by device ID\").optional(),\n}).describe(\"Request model for listing events with optional filtering and pagination.\");\nconst RadarListEvents_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API response\").nullable(),\n}).describe(\"Pagination metadata for list events response.\");\nconst RadarListEvents_EventUserSchema = z.object({\n _id: z.string().describe(\"User internal ID\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the user\").nullable().optional(),\n}).describe(\"User information nested within an event.\");\nconst RadarListEvents_EventGeofenceSchema = z.object({\n _id: z.string().describe(\"Geofence internal ID\").nullable().optional(),\n tag: z.string().describe(\"Geofence tag\").nullable().optional(),\n externalId: z.string().describe(\"Geofence external ID\").nullable().optional(),\n description: z.string().describe(\"Geofence description\").nullable().optional(),\n}).describe(\"Geofence information nested within an event.\");\nconst RadarListEvents_EventLocationSchema = z.object({\n type: z.string().describe(\"Location type (e.g., Point)\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates [longitude, latitude]\").nullable().optional(),\n}).describe(\"Location information nested within an event.\");\nconst RadarListEvents_EventSchema = z.object({\n _id: z.string().describe(\"Unique event identifier\").nullable(),\n live: z.boolean().describe(\"Whether the event is a live event\").nullable().optional(),\n type: z.string().describe(\"Type of the event\").nullable(),\n user: RadarListEvents_EventUserSchema.nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user was stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the event\").nullable().optional(),\n geofence: RadarListEvents_EventGeofenceSchema.nullable().optional(),\n location: RadarListEvents_EventLocationSchema.nullable().optional(),\n createdAt: z.string().describe(\"Event creation time in ISO 8601 format\").nullable(),\n confidence: z.number().int().describe(\"Confidence level of the event\").nullable().optional(),\n foreground: z.boolean().describe(\"Whether the event occurred in foreground\").nullable().optional(),\n sdkVersion: z.string().describe(\"SDK version\").nullable().optional(),\n actualCreatedAt: z.string().describe(\"Actual creation time in ISO 8601 format\").nullable().optional(),\n locationAccuracy: z.number().describe(\"Location accuracy in meters\").nullable().optional(),\n}).describe(\"Represents a single event object.\");\nexport const RadarListEventsOutput = z.object({\n meta: RadarListEvents_MetaSchema.nullable(),\n events: z.array(RadarListEvents_EventSchema).describe(\"List of event objects\"),\n}).describe(\"Response model for LIST_EVENTS, containing events and pagination metadata.\");\n\nexport const radarListEvents = action(\"RADAR_LIST_EVENTS\", {\n slug: \"radar-list-events\",\n name: \"List Events\",\n description: \"Tool to list events. Use when you need to retrieve a paginated list of events with optional filtering.\",\n input: RadarListEventsInput,\n output: RadarListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,6BAA6BA,IAAAA,EAAE,OAAO,EAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,+CAA+C;
|
|
1
|
+
{"version":3,"file":"list-events.cjs","names":["z","action"],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListEventsInput = z.object({\n end: z.string().describe(\"Return events created before this ISO 8601 timestamp\").optional(),\n type: z.string().describe(\"Filter events by event type\").optional(),\n limit: z.number().int().describe(\"Maximum number of events to return (1-500)\").optional(),\n start: z.string().describe(\"Return events created after this ISO 8601 timestamp\").optional(),\n userId: z.string().describe(\"Filter events by user ID\").optional(),\n afterId: z.string().describe(\"Cursor to return events created after this event ID\").optional(),\n beforeId: z.string().describe(\"Cursor to return events created before this event ID\").optional(),\n deviceId: z.string().describe(\"Filter events by device ID\").optional(),\n}).describe(\"Request model for listing events with optional filtering and pagination.\");\nconst RadarListEvents_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API response\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list events response.\");\nconst RadarListEvents_EventUserSchema = z.object({\n _id: z.string().describe(\"User internal ID\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the user\").nullable().optional(),\n}).passthrough().describe(\"User information nested within an event.\");\nconst RadarListEvents_EventGeofenceSchema = z.object({\n _id: z.string().describe(\"Geofence internal ID\").nullable().optional(),\n tag: z.string().describe(\"Geofence tag\").nullable().optional(),\n externalId: z.string().describe(\"Geofence external ID\").nullable().optional(),\n description: z.string().describe(\"Geofence description\").nullable().optional(),\n}).passthrough().describe(\"Geofence information nested within an event.\");\nconst RadarListEvents_EventLocationSchema = z.object({\n type: z.string().describe(\"Location type (e.g., Point)\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates [longitude, latitude]\").nullable().optional(),\n}).passthrough().describe(\"Location information nested within an event.\");\nconst RadarListEvents_EventSchema = z.object({\n _id: z.string().describe(\"Unique event identifier\").nullable(),\n live: z.boolean().describe(\"Whether the event is a live event\").nullable().optional(),\n type: z.string().describe(\"Type of the event\").nullable(),\n user: RadarListEvents_EventUserSchema.nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user was stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the event\").nullable().optional(),\n geofence: RadarListEvents_EventGeofenceSchema.nullable().optional(),\n location: RadarListEvents_EventLocationSchema.nullable().optional(),\n createdAt: z.string().describe(\"Event creation time in ISO 8601 format\").nullable(),\n confidence: z.number().int().describe(\"Confidence level of the event\").nullable().optional(),\n foreground: z.boolean().describe(\"Whether the event occurred in foreground\").nullable().optional(),\n sdkVersion: z.string().describe(\"SDK version\").nullable().optional(),\n actualCreatedAt: z.string().describe(\"Actual creation time in ISO 8601 format\").nullable().optional(),\n locationAccuracy: z.number().describe(\"Location accuracy in meters\").nullable().optional(),\n}).passthrough().describe(\"Represents a single event object.\");\nexport const RadarListEventsOutput = z.object({\n meta: RadarListEvents_MetaSchema.nullable(),\n events: z.array(RadarListEvents_EventSchema).describe(\"List of event objects\"),\n}).passthrough().describe(\"Response model for LIST_EVENTS, containing events and pagination metadata.\");\n\nexport const radarListEvents = action(\"RADAR_LIST_EVENTS\", {\n slug: \"radar-list-events\",\n name: \"List Events\",\n description: \"Tool to list events. Use when you need to retrieve a paginated list of events with optional filtering.\",\n input: RadarListEventsInput,\n output: RadarListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,6BAA6BA,IAAA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CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAM,2BAA2B,SAAS;CAC1C,QAAQA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,uBAAuB;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAA4E;AAEtG,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ declare const RadarListEventsInput: z.ZodObject<{
|
|
|
14
14
|
declare const RadarListEventsOutput: z.ZodObject<{
|
|
15
15
|
meta: z.ZodNullable<z.ZodObject<{
|
|
16
16
|
code: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
events: z.ZodArray<z.ZodObject<{
|
|
19
19
|
_id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -22,7 +22,7 @@ declare const RadarListEventsOutput: z.ZodObject<{
|
|
|
22
22
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
23
|
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
26
|
stopped: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
27
|
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
geofence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -30,19 +30,19 @@ declare const RadarListEventsOutput: z.ZodObject<{
|
|
|
30
30
|
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
34
|
location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
39
39
|
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
40
|
foreground: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
sdkVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
actualCreatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
locationAccuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const radarListEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
end?: string | undefined;
|
|
48
48
|
type?: string | undefined;
|
|
@@ -14,7 +14,7 @@ declare const RadarListEventsInput: z.ZodObject<{
|
|
|
14
14
|
declare const RadarListEventsOutput: z.ZodObject<{
|
|
15
15
|
meta: z.ZodNullable<z.ZodObject<{
|
|
16
16
|
code: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
events: z.ZodArray<z.ZodObject<{
|
|
19
19
|
_id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -22,7 +22,7 @@ declare const RadarListEventsOutput: z.ZodObject<{
|
|
|
22
22
|
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
23
|
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
26
|
stopped: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
27
|
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
geofence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -30,19 +30,19 @@ declare const RadarListEventsOutput: z.ZodObject<{
|
|
|
30
30
|
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
34
|
location: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
39
39
|
confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
40
|
foreground: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
sdkVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
actualCreatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
locationAccuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const radarListEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
end?: string | undefined;
|
|
48
48
|
type?: string | undefined;
|
|
@@ -11,21 +11,21 @@ const RadarListEventsInput = z.object({
|
|
|
11
11
|
beforeId: z.string().describe("Cursor to return events created before this event ID").optional(),
|
|
12
12
|
deviceId: z.string().describe("Filter events by device ID").optional()
|
|
13
13
|
}).describe("Request model for listing events with optional filtering and pagination.");
|
|
14
|
-
const RadarListEvents_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code from the API response").nullable() }).describe("Pagination metadata for list events response.");
|
|
14
|
+
const RadarListEvents_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code from the API response").nullable() }).passthrough().describe("Pagination metadata for list events response.");
|
|
15
15
|
const RadarListEvents_EventUserSchema = z.object({
|
|
16
16
|
_id: z.string().describe("User internal ID").nullable().optional(),
|
|
17
17
|
deviceId: z.string().describe("Device ID associated with the user").nullable().optional()
|
|
18
|
-
}).describe("User information nested within an event.");
|
|
18
|
+
}).passthrough().describe("User information nested within an event.");
|
|
19
19
|
const RadarListEvents_EventGeofenceSchema = z.object({
|
|
20
20
|
_id: z.string().describe("Geofence internal ID").nullable().optional(),
|
|
21
21
|
tag: z.string().describe("Geofence tag").nullable().optional(),
|
|
22
22
|
externalId: z.string().describe("Geofence external ID").nullable().optional(),
|
|
23
23
|
description: z.string().describe("Geofence description").nullable().optional()
|
|
24
|
-
}).describe("Geofence information nested within an event.");
|
|
24
|
+
}).passthrough().describe("Geofence information nested within an event.");
|
|
25
25
|
const RadarListEvents_EventLocationSchema = z.object({
|
|
26
26
|
type: z.string().describe("Location type (e.g., Point)").nullable().optional(),
|
|
27
27
|
coordinates: z.array(z.number()).describe("Coordinates [longitude, latitude]").nullable().optional()
|
|
28
|
-
}).describe("Location information nested within an event.");
|
|
28
|
+
}).passthrough().describe("Location information nested within an event.");
|
|
29
29
|
const RadarListEvents_EventSchema = z.object({
|
|
30
30
|
_id: z.string().describe("Unique event identifier").nullable(),
|
|
31
31
|
live: z.boolean().describe("Whether the event is a live event").nullable().optional(),
|
|
@@ -41,7 +41,7 @@ const RadarListEvents_EventSchema = z.object({
|
|
|
41
41
|
sdkVersion: z.string().describe("SDK version").nullable().optional(),
|
|
42
42
|
actualCreatedAt: z.string().describe("Actual creation time in ISO 8601 format").nullable().optional(),
|
|
43
43
|
locationAccuracy: z.number().describe("Location accuracy in meters").nullable().optional()
|
|
44
|
-
}).describe("Represents a single event object.");
|
|
44
|
+
}).passthrough().describe("Represents a single event object.");
|
|
45
45
|
const radarListEvents = action("RADAR_LIST_EVENTS", {
|
|
46
46
|
slug: "radar-list-events",
|
|
47
47
|
name: "List Events",
|
|
@@ -50,7 +50,7 @@ const radarListEvents = action("RADAR_LIST_EVENTS", {
|
|
|
50
50
|
output: z.object({
|
|
51
51
|
meta: RadarListEvents_MetaSchema.nullable(),
|
|
52
52
|
events: z.array(RadarListEvents_EventSchema).describe("List of event objects")
|
|
53
|
-
}).describe("Response model for LIST_EVENTS, containing events and pagination metadata.")
|
|
53
|
+
}).passthrough().describe("Response model for LIST_EVENTS, containing events and pagination metadata.")
|
|
54
54
|
});
|
|
55
55
|
//#endregion
|
|
56
56
|
export { radarListEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events.mjs","names":[],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListEventsInput = z.object({\n end: z.string().describe(\"Return events created before this ISO 8601 timestamp\").optional(),\n type: z.string().describe(\"Filter events by event type\").optional(),\n limit: z.number().int().describe(\"Maximum number of events to return (1-500)\").optional(),\n start: z.string().describe(\"Return events created after this ISO 8601 timestamp\").optional(),\n userId: z.string().describe(\"Filter events by user ID\").optional(),\n afterId: z.string().describe(\"Cursor to return events created after this event ID\").optional(),\n beforeId: z.string().describe(\"Cursor to return events created before this event ID\").optional(),\n deviceId: z.string().describe(\"Filter events by device ID\").optional(),\n}).describe(\"Request model for listing events with optional filtering and pagination.\");\nconst RadarListEvents_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API response\").nullable(),\n}).describe(\"Pagination metadata for list events response.\");\nconst RadarListEvents_EventUserSchema = z.object({\n _id: z.string().describe(\"User internal ID\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the user\").nullable().optional(),\n}).describe(\"User information nested within an event.\");\nconst RadarListEvents_EventGeofenceSchema = z.object({\n _id: z.string().describe(\"Geofence internal ID\").nullable().optional(),\n tag: z.string().describe(\"Geofence tag\").nullable().optional(),\n externalId: z.string().describe(\"Geofence external ID\").nullable().optional(),\n description: z.string().describe(\"Geofence description\").nullable().optional(),\n}).describe(\"Geofence information nested within an event.\");\nconst RadarListEvents_EventLocationSchema = z.object({\n type: z.string().describe(\"Location type (e.g., Point)\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates [longitude, latitude]\").nullable().optional(),\n}).describe(\"Location information nested within an event.\");\nconst RadarListEvents_EventSchema = z.object({\n _id: z.string().describe(\"Unique event identifier\").nullable(),\n live: z.boolean().describe(\"Whether the event is a live event\").nullable().optional(),\n type: z.string().describe(\"Type of the event\").nullable(),\n user: RadarListEvents_EventUserSchema.nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user was stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the event\").nullable().optional(),\n geofence: RadarListEvents_EventGeofenceSchema.nullable().optional(),\n location: RadarListEvents_EventLocationSchema.nullable().optional(),\n createdAt: z.string().describe(\"Event creation time in ISO 8601 format\").nullable(),\n confidence: z.number().int().describe(\"Confidence level of the event\").nullable().optional(),\n foreground: z.boolean().describe(\"Whether the event occurred in foreground\").nullable().optional(),\n sdkVersion: z.string().describe(\"SDK version\").nullable().optional(),\n actualCreatedAt: z.string().describe(\"Actual creation time in ISO 8601 format\").nullable().optional(),\n locationAccuracy: z.number().describe(\"Location accuracy in meters\").nullable().optional(),\n}).describe(\"Represents a single event object.\");\nexport const RadarListEventsOutput = z.object({\n meta: RadarListEvents_MetaSchema.nullable(),\n events: z.array(RadarListEvents_EventSchema).describe(\"List of event objects\"),\n}).describe(\"Response model for LIST_EVENTS, containing events and pagination metadata.\");\n\nexport const radarListEvents = action(\"RADAR_LIST_EVENTS\", {\n slug: \"radar-list-events\",\n name: \"List Events\",\n description: \"Tool to list events. Use when you need to retrieve a paginated list of events with optional filtering.\",\n input: RadarListEventsInput,\n output: RadarListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,6BAA6B,EAAE,OAAO,EAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,+CAA+C;
|
|
1
|
+
{"version":3,"file":"list-events.mjs","names":[],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListEventsInput = z.object({\n end: z.string().describe(\"Return events created before this ISO 8601 timestamp\").optional(),\n type: z.string().describe(\"Filter events by event type\").optional(),\n limit: z.number().int().describe(\"Maximum number of events to return (1-500)\").optional(),\n start: z.string().describe(\"Return events created after this ISO 8601 timestamp\").optional(),\n userId: z.string().describe(\"Filter events by user ID\").optional(),\n afterId: z.string().describe(\"Cursor to return events created after this event ID\").optional(),\n beforeId: z.string().describe(\"Cursor to return events created before this event ID\").optional(),\n deviceId: z.string().describe(\"Filter events by device ID\").optional(),\n}).describe(\"Request model for listing events with optional filtering and pagination.\");\nconst RadarListEvents_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code from the API response\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list events response.\");\nconst RadarListEvents_EventUserSchema = z.object({\n _id: z.string().describe(\"User internal ID\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the user\").nullable().optional(),\n}).passthrough().describe(\"User information nested within an event.\");\nconst RadarListEvents_EventGeofenceSchema = z.object({\n _id: z.string().describe(\"Geofence internal ID\").nullable().optional(),\n tag: z.string().describe(\"Geofence tag\").nullable().optional(),\n externalId: z.string().describe(\"Geofence external ID\").nullable().optional(),\n description: z.string().describe(\"Geofence description\").nullable().optional(),\n}).passthrough().describe(\"Geofence information nested within an event.\");\nconst RadarListEvents_EventLocationSchema = z.object({\n type: z.string().describe(\"Location type (e.g., Point)\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates [longitude, latitude]\").nullable().optional(),\n}).passthrough().describe(\"Location information nested within an event.\");\nconst RadarListEvents_EventSchema = z.object({\n _id: z.string().describe(\"Unique event identifier\").nullable(),\n live: z.boolean().describe(\"Whether the event is a live event\").nullable().optional(),\n type: z.string().describe(\"Type of the event\").nullable(),\n user: RadarListEvents_EventUserSchema.nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user was stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID associated with the event\").nullable().optional(),\n geofence: RadarListEvents_EventGeofenceSchema.nullable().optional(),\n location: RadarListEvents_EventLocationSchema.nullable().optional(),\n createdAt: z.string().describe(\"Event creation time in ISO 8601 format\").nullable(),\n confidence: z.number().int().describe(\"Confidence level of the event\").nullable().optional(),\n foreground: z.boolean().describe(\"Whether the event occurred in foreground\").nullable().optional(),\n sdkVersion: z.string().describe(\"SDK version\").nullable().optional(),\n actualCreatedAt: z.string().describe(\"Actual creation time in ISO 8601 format\").nullable().optional(),\n locationAccuracy: z.number().describe(\"Location accuracy in meters\").nullable().optional(),\n}).passthrough().describe(\"Represents a single event object.\");\nexport const RadarListEventsOutput = z.object({\n meta: RadarListEvents_MetaSchema.nullable(),\n events: z.array(RadarListEvents_EventSchema).describe(\"List of event objects\"),\n}).passthrough().describe(\"Response model for LIST_EVENTS, containing events and pagination metadata.\");\n\nexport const radarListEvents = action(\"RADAR_LIST_EVENTS\", {\n slug: \"radar-list-events\",\n name: \"List Events\",\n description: \"Tool to list events. Use when you need to retrieve a paginated list of events with optional filtering.\",\n input: RadarListEventsInput,\n output: RadarListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CA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BAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmC,EAAE,OAAO;EAC5C,MAAM,2BAA2B,SAAS;EAC1C,QAAQ,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,uBAAuB;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4EAOhB;AACV,CAAC"}
|
|
@@ -15,15 +15,15 @@ const RadarListGeofencesInput = zod.z.object({
|
|
|
15
15
|
const RadarListGeofences_MetaSchema = zod.z.object({
|
|
16
16
|
code: zod.z.number().int().describe("HTTP status code of the response").nullable(),
|
|
17
17
|
hasMore: zod.z.boolean().describe("Whether there are more results available").nullable()
|
|
18
|
-
}).describe("Pagination metadata for list geofences response.");
|
|
18
|
+
}).passthrough().describe("Pagination metadata for list geofences response.");
|
|
19
19
|
const RadarListGeofences_GeometrySchema = zod.z.object({
|
|
20
20
|
type: zod.z.string().describe("Geometry type, e.g., 'Polygon'").nullable(),
|
|
21
21
|
coordinates: zod.z.array(zod.z.array(zod.z.array(zod.z.number()))).describe("Nested coordinates array for polygon geometry")
|
|
22
|
-
}).describe("Geometry details of the geofence (Polygon representation).");
|
|
22
|
+
}).passthrough().describe("Geometry details of the geofence (Polygon representation).");
|
|
23
23
|
const RadarListGeofences_GeometryCenterSchema = zod.z.object({
|
|
24
24
|
type: zod.z.string().describe("Geometry type, e.g., 'Point'").nullable(),
|
|
25
25
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates array [longitude, latitude]")
|
|
26
|
-
}).describe("Center point of the geofence.");
|
|
26
|
+
}).passthrough().describe("Center point of the geofence.");
|
|
27
27
|
const RadarListGeofences_GeofenceSchema = zod.z.object({
|
|
28
28
|
ip: zod.z.array(zod.z.string()).describe("IP addresses associated with the geofence").nullable().optional(),
|
|
29
29
|
_id: zod.z.string().describe("Unique identifier of the geofence").nullable(),
|
|
@@ -39,11 +39,11 @@ const RadarListGeofences_GeofenceSchema = zod.z.object({
|
|
|
39
39
|
description: zod.z.string().describe("Description of the geofence").nullable().optional(),
|
|
40
40
|
geometryCenter: RadarListGeofences_GeometryCenterSchema.nullable().optional(),
|
|
41
41
|
geometryRadius: zod.z.number().describe("Radius of the geofence in meters (for circles)").nullable().optional()
|
|
42
|
-
}).describe("Representation of a Radar geofence.");
|
|
42
|
+
}).passthrough().describe("Representation of a Radar geofence.");
|
|
43
43
|
const RadarListGeofencesOutput = zod.z.object({
|
|
44
44
|
meta: RadarListGeofences_MetaSchema.nullable(),
|
|
45
45
|
geofences: zod.z.array(RadarListGeofences_GeofenceSchema).describe("List of geofence objects")
|
|
46
|
-
}).describe("Response model for listing geofences.");
|
|
46
|
+
}).passthrough().describe("Response model for listing geofences.");
|
|
47
47
|
const radarListGeofences = require_action.action("RADAR_LIST_GEOFENCES", {
|
|
48
48
|
slug: "radar-list-geofences",
|
|
49
49
|
name: "List Geofences",
|