@keystrokehq/radar 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.cjs +12 -12
- package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.cts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.mts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.mjs +12 -12
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +12 -12
- package/dist/actions/create-beacon.cjs.map +1 -1
- package/dist/actions/create-beacon.d.cts +56 -3
- package/dist/actions/create-beacon.d.cts.map +1 -1
- package/dist/actions/create-beacon.d.mts +56 -3
- package/dist/actions/create-beacon.d.mts.map +1 -1
- package/dist/actions/create-beacon.mjs +12 -12
- package/dist/actions/create-beacon.mjs.map +1 -1
- package/dist/actions/create-trip.cjs +1 -1
- package/dist/actions/create-trip.cjs.map +1 -1
- package/dist/actions/create-trip.d.cts +44 -3
- package/dist/actions/create-trip.d.cts.map +1 -1
- package/dist/actions/create-trip.d.mts +44 -3
- package/dist/actions/create-trip.d.mts.map +1 -1
- package/dist/actions/create-trip.mjs +1 -1
- package/dist/actions/create-trip.mjs.map +1 -1
- package/dist/actions/delete-beacon.cjs +2 -2
- package/dist/actions/delete-beacon.cjs.map +1 -1
- package/dist/actions/delete-beacon.d.cts +11 -3
- package/dist/actions/delete-beacon.d.cts.map +1 -1
- package/dist/actions/delete-beacon.d.mts +11 -3
- package/dist/actions/delete-beacon.d.mts.map +1 -1
- package/dist/actions/delete-beacon.mjs +2 -2
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +2 -2
- package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.cts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.mts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.mjs +2 -2
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +2 -2
- package/dist/actions/delete-geofence.cjs.map +1 -1
- package/dist/actions/delete-geofence.d.cts +11 -3
- package/dist/actions/delete-geofence.d.cts.map +1 -1
- package/dist/actions/delete-geofence.d.mts +11 -3
- package/dist/actions/delete-geofence.d.mts.map +1 -1
- package/dist/actions/delete-geofence.mjs +2 -2
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +2 -2
- package/dist/actions/delete-trip.cjs.map +1 -1
- package/dist/actions/delete-trip.d.cts +11 -3
- package/dist/actions/delete-trip.d.cts.map +1 -1
- package/dist/actions/delete-trip.d.mts +11 -3
- package/dist/actions/delete-trip.d.mts.map +1 -1
- package/dist/actions/delete-trip.mjs +2 -2
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +2 -2
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +11 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +11 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +2 -2
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +7 -7
- package/dist/actions/forward-geocode.cjs.map +1 -1
- package/dist/actions/forward-geocode.d.cts +37 -3
- package/dist/actions/forward-geocode.d.cts.map +1 -1
- package/dist/actions/forward-geocode.d.mts +37 -3
- package/dist/actions/forward-geocode.d.mts.map +1 -1
- package/dist/actions/forward-geocode.mjs +7 -7
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +10 -10
- package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.cts +33 -3
- package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.mts +33 -3
- package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/get-beacon-by-tag.mjs +10 -10
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +6 -6
- package/dist/actions/get-beacon.cjs.map +1 -1
- package/dist/actions/get-beacon.d.cts +29 -3
- package/dist/actions/get-beacon.d.cts.map +1 -1
- package/dist/actions/get-beacon.d.mts +29 -3
- package/dist/actions/get-beacon.d.mts.map +1 -1
- package/dist/actions/get-beacon.mjs +6 -6
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +18 -18
- package/dist/actions/get-context-for-location.cjs.map +1 -1
- package/dist/actions/get-context-for-location.d.cts +85 -3
- package/dist/actions/get-context-for-location.d.cts.map +1 -1
- package/dist/actions/get-context-for-location.d.mts +85 -3
- package/dist/actions/get-context-for-location.d.mts.map +1 -1
- package/dist/actions/get-context-for-location.mjs +18 -18
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +8 -8
- package/dist/actions/get-geofence.cjs.map +1 -1
- package/dist/actions/get-geofence.d.cts +26 -3
- package/dist/actions/get-geofence.d.cts.map +1 -1
- package/dist/actions/get-geofence.d.mts +26 -3
- package/dist/actions/get-geofence.d.mts.map +1 -1
- package/dist/actions/get-geofence.mjs +8 -8
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +3 -3
- package/dist/actions/get-places-settings.cjs.map +1 -1
- package/dist/actions/get-places-settings.d.cts +15 -3
- package/dist/actions/get-places-settings.d.cts.map +1 -1
- package/dist/actions/get-places-settings.d.mts +15 -3
- package/dist/actions/get-places-settings.d.mts.map +1 -1
- package/dist/actions/get-places-settings.mjs +3 -3
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +16 -16
- package/dist/actions/get-route-directions.cjs.map +1 -1
- package/dist/actions/get-route-directions.d.cts +118 -3
- package/dist/actions/get-route-directions.d.cts.map +1 -1
- package/dist/actions/get-route-directions.d.mts +118 -3
- package/dist/actions/get-route-directions.d.mts.map +1 -1
- package/dist/actions/get-route-directions.mjs +16 -16
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +14 -14
- package/dist/actions/get-route-matrix.cjs.map +1 -1
- package/dist/actions/get-route-matrix.d.cts +45 -3
- package/dist/actions/get-route-matrix.d.cts.map +1 -1
- package/dist/actions/get-route-matrix.d.mts +45 -3
- package/dist/actions/get-route-matrix.d.mts.map +1 -1
- package/dist/actions/get-route-matrix.mjs +14 -14
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +6 -6
- package/dist/actions/get-trip.cjs.map +1 -1
- package/dist/actions/get-trip.d.cts +39 -3
- package/dist/actions/get-trip.d.cts.map +1 -1
- package/dist/actions/get-trip.d.mts +39 -3
- package/dist/actions/get-trip.d.mts.map +1 -1
- package/dist/actions/get-trip.mjs +6 -6
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +8 -8
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +66 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +66 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +8 -8
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +4 -4
- package/dist/actions/get-users-in-geofence.cjs.map +1 -1
- package/dist/actions/get-users-in-geofence.d.cts +19 -3
- package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
- package/dist/actions/get-users-in-geofence.d.mts +19 -3
- package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
- package/dist/actions/get-users-in-geofence.mjs +4 -4
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +5 -5
- package/dist/actions/ip-geocode.cjs.map +1 -1
- package/dist/actions/ip-geocode.d.cts +20 -3
- package/dist/actions/ip-geocode.d.cts.map +1 -1
- package/dist/actions/ip-geocode.d.mts +20 -3
- package/dist/actions/ip-geocode.d.mts.map +1 -1
- package/dist/actions/ip-geocode.mjs +5 -5
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +9 -9
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +52 -3
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +52 -3
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +9 -9
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +13 -13
- package/dist/actions/list-geofences.cjs.map +1 -1
- package/dist/actions/list-geofences.d.cts +50 -3
- package/dist/actions/list-geofences.d.cts.map +1 -1
- package/dist/actions/list-geofences.d.mts +50 -3
- package/dist/actions/list-geofences.d.mts.map +1 -1
- package/dist/actions/list-geofences.mjs +13 -13
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +9 -9
- package/dist/actions/list-trips.cjs.map +1 -1
- package/dist/actions/list-trips.d.cts +50 -3
- package/dist/actions/list-trips.d.cts.map +1 -1
- package/dist/actions/list-trips.d.mts +50 -3
- package/dist/actions/list-trips.d.mts.map +1 -1
- package/dist/actions/list-trips.mjs +9 -9
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +8 -8
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +35 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +35 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +8 -8
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/reverse-geocode.cjs +2 -2
- package/dist/actions/reverse-geocode.cjs.map +1 -1
- package/dist/actions/reverse-geocode.d.cts +33 -3
- package/dist/actions/reverse-geocode.d.cts.map +1 -1
- package/dist/actions/reverse-geocode.d.mts +33 -3
- package/dist/actions/reverse-geocode.d.mts.map +1 -1
- package/dist/actions/reverse-geocode.mjs +2 -2
- package/dist/actions/reverse-geocode.mjs.map +1 -1
- package/dist/actions/route-distance.cjs +12 -12
- package/dist/actions/route-distance.cjs.map +1 -1
- package/dist/actions/route-distance.d.cts +110 -3
- package/dist/actions/route-distance.d.cts.map +1 -1
- package/dist/actions/route-distance.d.mts +110 -3
- package/dist/actions/route-distance.d.mts.map +1 -1
- package/dist/actions/route-distance.mjs +12 -12
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +5 -5
- package/dist/actions/search-geofences-near-location.cjs.map +1 -1
- package/dist/actions/search-geofences-near-location.d.cts +34 -3
- package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
- package/dist/actions/search-geofences-near-location.d.mts +34 -3
- package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
- package/dist/actions/search-geofences-near-location.mjs +5 -5
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +9 -9
- package/dist/actions/search-places-near-location.cjs.map +1 -1
- package/dist/actions/search-places-near-location.d.cts +51 -3
- package/dist/actions/search-places-near-location.d.cts.map +1 -1
- package/dist/actions/search-places-near-location.d.mts +51 -3
- package/dist/actions/search-places-near-location.d.mts.map +1 -1
- package/dist/actions/search-places-near-location.mjs +9 -9
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +9 -9
- package/dist/actions/search-users-near-location.cjs.map +1 -1
- package/dist/actions/search-users-near-location.d.cts +28 -3
- package/dist/actions/search-users-near-location.d.cts.map +1 -1
- package/dist/actions/search-users-near-location.d.mts +28 -3
- package/dist/actions/search-users-near-location.d.mts.map +1 -1
- package/dist/actions/search-users-near-location.mjs +9 -9
- package/dist/actions/search-users-near-location.mjs.map +1 -1
- package/dist/actions/track-location-update.cjs +1 -1
- package/dist/actions/track-location-update.cjs.map +1 -1
- package/dist/actions/track-location-update.d.cts +43 -3
- package/dist/actions/track-location-update.d.cts.map +1 -1
- package/dist/actions/track-location-update.d.mts +43 -3
- package/dist/actions/track-location-update.d.mts.map +1 -1
- package/dist/actions/track-location-update.mjs +1 -1
- package/dist/actions/track-location-update.mjs.map +1 -1
- package/dist/actions/update-places-settings.cjs +3 -3
- package/dist/actions/update-places-settings.cjs.map +1 -1
- package/dist/actions/update-places-settings.d.cts +23 -3
- package/dist/actions/update-places-settings.d.cts.map +1 -1
- package/dist/actions/update-places-settings.d.mts +23 -3
- package/dist/actions/update-places-settings.d.mts.map +1 -1
- package/dist/actions/update-places-settings.mjs +3 -3
- package/dist/actions/update-places-settings.mjs.map +1 -1
- package/dist/actions/update-trip-by-id.cjs +3 -3
- package/dist/actions/update-trip-by-id.cjs.map +1 -1
- package/dist/actions/update-trip-by-id.d.cts +47 -3
- package/dist/actions/update-trip-by-id.d.cts.map +1 -1
- package/dist/actions/update-trip-by-id.d.mts +47 -3
- package/dist/actions/update-trip-by-id.d.mts.map +1 -1
- package/dist/actions/update-trip-by-id.mjs +3 -3
- package/dist/actions/update-trip-by-id.mjs.map +1 -1
- package/dist/actions/update-trip.cjs +5 -5
- package/dist/actions/update-trip.cjs.map +1 -1
- package/dist/actions/update-trip.d.cts +67 -3
- package/dist/actions/update-trip.d.cts.map +1 -1
- package/dist/actions/update-trip.d.mts +67 -3
- package/dist/actions/update-trip.d.mts.map +1 -1
- package/dist/actions/update-trip.mjs +5 -5
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +9 -9
- package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.cts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.mts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.mjs +9 -9
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.cts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.mts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.mjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +12 -12
- package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.cts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.mts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.mjs +12 -12
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +7 -7
- package/dist/actions/upsert-geofence.cjs.map +1 -1
- package/dist/actions/upsert-geofence.d.cts +40 -3
- package/dist/actions/upsert-geofence.d.cts.map +1 -1
- package/dist/actions/upsert-geofence.d.mts +40 -3
- package/dist/actions/upsert-geofence.d.mts.map +1 -1
- package/dist/actions/upsert-geofence.mjs +7 -7
- package/dist/actions/upsert-geofence.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -13,33 +13,33 @@ const RadarListGeofencesInput = z.object({
|
|
|
13
13
|
updatedBefore: z.string().describe("Return geofences updated before this ISO8601 timestamp").optional()
|
|
14
14
|
}).describe("Request model for listing Radar geofences with optional filters and pagination.");
|
|
15
15
|
const RadarListGeofences_MetaSchema = z.object({
|
|
16
|
-
code: z.number().int().describe("HTTP status code of the response"),
|
|
17
|
-
hasMore: z.boolean().describe("Whether there are more results available")
|
|
18
|
-
}).describe("Pagination metadata for list geofences response.");
|
|
16
|
+
code: z.number().int().describe("HTTP status code of the response").nullable(),
|
|
17
|
+
hasMore: z.boolean().describe("Whether there are more results available").nullable()
|
|
18
|
+
}).passthrough().describe("Pagination metadata for list geofences response.");
|
|
19
19
|
const RadarListGeofences_GeometrySchema = z.object({
|
|
20
|
-
type: z.string().describe("Geometry type, e.g., 'Polygon'"),
|
|
20
|
+
type: z.string().describe("Geometry type, e.g., 'Polygon'").nullable(),
|
|
21
21
|
coordinates: z.array(z.array(z.array(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 = z.object({
|
|
24
|
-
type: z.string().describe("Geometry type, e.g., 'Point'"),
|
|
24
|
+
type: z.string().describe("Geometry type, e.g., 'Point'").nullable(),
|
|
25
25
|
coordinates: z.array(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 = z.object({
|
|
28
28
|
ip: z.array(z.string()).describe("IP addresses associated with the geofence").nullable().optional(),
|
|
29
|
-
_id: z.string().describe("Unique identifier of the geofence"),
|
|
29
|
+
_id: z.string().describe("Unique identifier of the geofence").nullable(),
|
|
30
30
|
tag: z.string().describe("Tag associated with the geofence").nullable().optional(),
|
|
31
31
|
live: z.boolean().describe("Whether the geofence is in live mode").nullable().optional(),
|
|
32
|
-
type: z.string().describe("Type of the geofence, e.g., 'circle' or 'polygon'"),
|
|
32
|
+
type: z.string().describe("Type of the geofence, e.g., 'circle' or 'polygon'").nullable(),
|
|
33
33
|
enabled: z.boolean().describe("Whether the geofence is enabled").nullable().optional(),
|
|
34
34
|
geometry: RadarListGeofences_GeometrySchema.nullable(),
|
|
35
35
|
metadata: z.record(z.string(), z.unknown()).describe("Custom key-value data attached to the geofence").nullable().optional(),
|
|
36
|
-
createdAt: z.string().describe("ISO8601 timestamp when the geofence was created"),
|
|
37
|
-
updatedAt: z.string().describe("ISO8601 timestamp when the geofence was last updated"),
|
|
36
|
+
createdAt: z.string().describe("ISO8601 timestamp when the geofence was created").nullable(),
|
|
37
|
+
updatedAt: z.string().describe("ISO8601 timestamp when the geofence was last updated").nullable(),
|
|
38
38
|
externalId: z.string().describe("External identifier of the geofence").nullable().optional(),
|
|
39
39
|
description: z.string().describe("Description of the geofence").nullable().optional(),
|
|
40
40
|
geometryCenter: RadarListGeofences_GeometryCenterSchema.nullable().optional(),
|
|
41
41
|
geometryRadius: 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 radarListGeofences = action("RADAR_LIST_GEOFENCES", {
|
|
44
44
|
slug: "radar-list-geofences",
|
|
45
45
|
name: "List Geofences",
|
|
@@ -48,7 +48,7 @@ const radarListGeofences = action("RADAR_LIST_GEOFENCES", {
|
|
|
48
48
|
output: z.object({
|
|
49
49
|
meta: RadarListGeofences_MetaSchema.nullable(),
|
|
50
50
|
geofences: z.array(RadarListGeofences_GeofenceSchema).describe("List of geofence objects")
|
|
51
|
-
}).describe("Response model for listing geofences.")
|
|
51
|
+
}).passthrough().describe("Response model for listing geofences.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { radarListGeofences };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-geofences.mjs","names":[],"sources":["../../src/actions/list-geofences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListGeofencesInput
|
|
1
|
+
{"version":3,"file":"list-geofences.mjs","names":[],"sources":["../../src/actions/list-geofences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListGeofencesInput = z.object({\n tag: z.string().describe(\"Filter geofences by tag\").optional(),\n page: z.number().int().describe(\"Page number to return (default 1)\").optional(),\n limit: z.number().int().describe(\"Maximum number of geofences to return (1-500)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n externalId: z.string().describe(\"Filter geofences by external ID\").optional(),\n createdAfter: z.string().describe(\"Return geofences created after this ISO8601 timestamp\").optional(),\n updatedAfter: z.string().describe(\"Return geofences updated after this ISO8601 timestamp\").optional(),\n createdBefore: z.string().describe(\"Return geofences created before this ISO8601 timestamp\").optional(),\n updatedBefore: z.string().describe(\"Return geofences updated before this ISO8601 timestamp\").optional(),\n}).describe(\"Request model for listing Radar geofences with optional filters and pagination.\");\nconst RadarListGeofences_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list geofences response.\");\nconst RadarListGeofences_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Polygon'\").nullable(),\n coordinates: z.array(z.array(z.array(z.number()))).describe(\"Nested coordinates array for polygon geometry\"),\n}).passthrough().describe(\"Geometry details of the geofence (Polygon representation).\");\nconst RadarListGeofences_GeometryCenterSchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point'\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates array [longitude, latitude]\"),\n}).passthrough().describe(\"Center point of the geofence.\");\nconst RadarListGeofences_GeofenceSchema = z.object({\n ip: z.array(z.string()).describe(\"IP addresses associated with the geofence\").nullable().optional(),\n _id: z.string().describe(\"Unique identifier of the geofence\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is in live mode\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence, e.g., 'circle' or 'polygon'\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarListGeofences_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the geofence was created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the geofence was last updated\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n geometryCenter: RadarListGeofences_GeometryCenterSchema.nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarListGeofencesOutput = z.object({\n meta: RadarListGeofences_MetaSchema.nullable(),\n geofences: z.array(RadarListGeofences_GeofenceSchema).describe(\"List of geofence objects\"),\n}).passthrough().describe(\"Response model for listing geofences.\");\n\nexport const radarListGeofences = action(\"RADAR_LIST_GEOFENCES\", {\n slug: \"radar-list-geofences\",\n name: \"List Geofences\",\n description: \"Tool to list all geofences sorted by updated time. Use when you need an overview of all configured geofences.\",\n input: RadarListGeofencesInput,\n output: RadarListGeofencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,I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AAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,8BAA8B,SAAS;EAC7C,WAAW,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0BAA0B;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -4,22 +4,22 @@ let zod = require("zod");
|
|
|
4
4
|
const RadarListTripsInput = zod.z.object({
|
|
5
5
|
limit: zod.z.number().int().describe("Maximum number of trips to return (1–100). Defaults to 100 when omitted.").optional(),
|
|
6
6
|
userId: zod.z.string().describe("Filter trips by Radar user ID.").optional(),
|
|
7
|
-
metadata: zod.z.
|
|
7
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter trips by metadata key/value pairs.").optional(),
|
|
8
8
|
externalId: zod.z.string().describe("Filter trips by external ID.").optional(),
|
|
9
9
|
endingBefore: zod.z.string().describe("Return trips ending immediately before this trip ID.").optional(),
|
|
10
10
|
startingAfter: zod.z.string().describe("Return trips starting immediately after this trip ID.").optional()
|
|
11
11
|
}).describe("Request model for LIST_TRIPS.");
|
|
12
12
|
const RadarListTrips_ListTripsMetaSchema = zod.z.object({
|
|
13
|
-
code: zod.z.number().int().describe("HTTP response code"),
|
|
13
|
+
code: zod.z.number().int().describe("HTTP response code").nullable(),
|
|
14
14
|
limit: zod.z.number().int().describe("Maximum number of items per page").nullable().optional(),
|
|
15
|
-
hasMore: zod.z.boolean().describe("Whether there are more results available"),
|
|
15
|
+
hasMore: zod.z.boolean().describe("Whether there are more results available").nullable(),
|
|
16
16
|
endingBefore: zod.z.string().describe("Cursor for fetching the previous page of results").nullable().optional(),
|
|
17
17
|
startingAfter: zod.z.string().describe("Cursor for fetching the next page of results").nullable().optional()
|
|
18
|
-
}).describe("Metadata object for pagination of list trips.");
|
|
18
|
+
}).passthrough().describe("Metadata object for pagination of list trips.");
|
|
19
19
|
const RadarListTrips_DestinationLocationSchema = zod.z.object({
|
|
20
|
-
latitude: zod.z.number().describe("Latitude of the trip destination"),
|
|
21
|
-
longitude: zod.z.number().describe("Longitude of the trip destination")
|
|
22
|
-
}).describe("Destination location coordinates for a trip.");
|
|
20
|
+
latitude: zod.z.number().describe("Latitude of the trip destination").nullable(),
|
|
21
|
+
longitude: zod.z.number().describe("Longitude of the trip destination").nullable()
|
|
22
|
+
}).passthrough().describe("Destination location coordinates for a trip.");
|
|
23
23
|
const RadarListTrips_TripSchema = zod.z.object({
|
|
24
24
|
_id: zod.z.string().describe("Unique Radar trip ID").nullable().optional(),
|
|
25
25
|
eta: zod.z.number().describe("Estimated time of arrival in seconds").nullable().optional(),
|
|
@@ -41,11 +41,11 @@ const RadarListTrips_TripSchema = zod.z.object({
|
|
|
41
41
|
approachingThreshold: zod.z.number().int().describe("Distance threshold in meters for approaching destination").nullable().optional(),
|
|
42
42
|
destinationGeofenceTag: zod.z.string().describe("Tag of destination geofence").nullable().optional(),
|
|
43
43
|
destinationGeofenceExternalId: zod.z.string().describe("External ID of destination geofence").nullable().optional()
|
|
44
|
-
}).describe("Trip object returned by Radar.");
|
|
44
|
+
}).passthrough().describe("Trip object returned by Radar.");
|
|
45
45
|
const RadarListTripsOutput = zod.z.object({
|
|
46
46
|
meta: RadarListTrips_ListTripsMetaSchema.nullable(),
|
|
47
47
|
trips: zod.z.array(RadarListTrips_TripSchema).describe("List of trip objects")
|
|
48
|
-
}).describe("Response model for LIST_TRIPS, containing a list of trip objects and pagination metadata.");
|
|
48
|
+
}).passthrough().describe("Response model for LIST_TRIPS, containing a list of trip objects and pagination metadata.");
|
|
49
49
|
const radarListTrips = require_action.action("RADAR_LIST_TRIPS", {
|
|
50
50
|
slug: "radar-list-trips",
|
|
51
51
|
name: "List Trips",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-trips.cjs","names":["z","action"],"sources":["../../src/actions/list-trips.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListTripsInput
|
|
1
|
+
{"version":3,"file":"list-trips.cjs","names":["z","action"],"sources":["../../src/actions/list-trips.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListTripsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of trips to return (1–100). Defaults to 100 when omitted.\").optional(),\n userId: z.string().describe(\"Filter trips by Radar user ID.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter trips by metadata key/value pairs.\").optional(),\n externalId: z.string().describe(\"Filter trips by external ID.\").optional(),\n endingBefore: z.string().describe(\"Return trips ending immediately before this trip ID.\").optional(),\n startingAfter: z.string().describe(\"Return trips starting immediately after this trip ID.\").optional(),\n}).describe(\"Request model for LIST_TRIPS.\");\nconst RadarListTrips_ListTripsMetaSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n limit: z.number().int().describe(\"Maximum number of items per page\").nullable().optional(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n endingBefore: z.string().describe(\"Cursor for fetching the previous page of results\").nullable().optional(),\n startingAfter: z.string().describe(\"Cursor for fetching the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Metadata object for pagination of list trips.\");\nconst RadarListTrips_DestinationLocationSchema = z.object({\n latitude: z.number().describe(\"Latitude of the trip destination\").nullable(),\n longitude: z.number().describe(\"Longitude of the trip destination\").nullable(),\n}).passthrough().describe(\"Destination location coordinates for a trip.\");\nconst RadarListTrips_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n live: z.boolean().describe(\"Whether the trip is live\").nullable().optional(),\n mode: z.string().describe(\"Mode of transport (e.g., car, bike, foot)\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n issues: z.array(z.unknown()).describe(\"Issues detected during the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\n userId: z.string().describe(\"Radar user ID associated with the trip\").nullable().optional(),\n distance: z.number().describe(\"Distance traveled in meters\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data for the trip\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO8601 format\").nullable().optional(),\n locations: z.array(z.unknown()).describe(\"Locations tracked during the trip\").nullable().optional(),\n startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\n externalId: z.string().describe(\"External trip ID\").nullable().optional(),\n completedAt: z.string().describe(\"Completion timestamp in ISO8601 format if completed\").nullable().optional(),\n destinationLocation: RadarListTrips_DestinationLocationSchema.nullable().optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching destination\").nullable().optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").nullable().optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").nullable().optional(),\n}).passthrough().describe(\"Trip object returned by Radar.\");\nexport const RadarListTripsOutput = z.object({\n meta: RadarListTrips_ListTripsMetaSchema.nullable(),\n trips: z.array(RadarListTrips_TripSchema).describe(\"List of trip objects\"),\n}).passthrough().describe(\"Response model for LIST_TRIPS, containing a list of trip objects and pagination metadata.\");\n\nexport const radarListTrips = action(\"RADAR_LIST_TRIPS\", {\n slug: \"radar-list-trips\",\n name: \"List Trips\",\n description: \"Tool to list all trips, sorted by updated time. Use when you need to page through the latest trips.\",\n input: RadarListTripsInput,\n output: RadarListTripsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC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;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-trips.d.ts
|
|
4
|
-
declare const RadarListTripsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarListTripsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
endingBefore: z.ZodOptional<z.ZodString>;
|
|
10
|
+
startingAfter: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const RadarListTripsOutput: z.ZodObject<{
|
|
13
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
endingBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
startingAfter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
trips: z.ZodArray<z.ZodObject<{
|
|
21
|
+
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
eta: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
issues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
27
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
33
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
destinationLocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
approachingThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
destinationGeofenceTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
declare const radarListTrips: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
limit?: number | undefined;
|
|
48
|
+
userId?: string | undefined;
|
|
49
|
+
metadata?: Record<string, unknown> | undefined;
|
|
50
|
+
externalId?: string | undefined;
|
|
51
|
+
endingBefore?: string | undefined;
|
|
52
|
+
startingAfter?: string | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { radarListTrips };
|
|
9
56
|
//# sourceMappingURL=list-trips.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-trips.d.cts","names":[],"sources":["../../src/actions/list-trips.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-trips.d.cts","names":[],"sources":["../../src/actions/list-trips.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cAyCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA;;;aAMzB,MAAA"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-trips.d.ts
|
|
4
|
-
declare const RadarListTripsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarListTripsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
endingBefore: z.ZodOptional<z.ZodString>;
|
|
10
|
+
startingAfter: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const RadarListTripsOutput: z.ZodObject<{
|
|
13
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
endingBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
startingAfter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
trips: z.ZodArray<z.ZodObject<{
|
|
21
|
+
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
eta: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
issues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
27
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
33
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
destinationLocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
approachingThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
destinationGeofenceTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
declare const radarListTrips: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
limit?: number | undefined;
|
|
48
|
+
userId?: string | undefined;
|
|
49
|
+
metadata?: Record<string, unknown> | undefined;
|
|
50
|
+
externalId?: string | undefined;
|
|
51
|
+
endingBefore?: string | undefined;
|
|
52
|
+
startingAfter?: string | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { radarListTrips };
|
|
9
56
|
//# sourceMappingURL=list-trips.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-trips.d.mts","names":[],"sources":["../../src/actions/list-trips.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-trips.d.mts","names":[],"sources":["../../src/actions/list-trips.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cAyCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA;;;aAMzB,MAAA"}
|
|
@@ -4,22 +4,22 @@ import { z } from "zod";
|
|
|
4
4
|
const RadarListTripsInput = z.object({
|
|
5
5
|
limit: z.number().int().describe("Maximum number of trips to return (1–100). Defaults to 100 when omitted.").optional(),
|
|
6
6
|
userId: z.string().describe("Filter trips by Radar user ID.").optional(),
|
|
7
|
-
metadata: z.
|
|
7
|
+
metadata: z.record(z.string(), z.unknown()).describe("Filter trips by metadata key/value pairs.").optional(),
|
|
8
8
|
externalId: z.string().describe("Filter trips by external ID.").optional(),
|
|
9
9
|
endingBefore: z.string().describe("Return trips ending immediately before this trip ID.").optional(),
|
|
10
10
|
startingAfter: z.string().describe("Return trips starting immediately after this trip ID.").optional()
|
|
11
11
|
}).describe("Request model for LIST_TRIPS.");
|
|
12
12
|
const RadarListTrips_ListTripsMetaSchema = z.object({
|
|
13
|
-
code: z.number().int().describe("HTTP response code"),
|
|
13
|
+
code: z.number().int().describe("HTTP response code").nullable(),
|
|
14
14
|
limit: z.number().int().describe("Maximum number of items per page").nullable().optional(),
|
|
15
|
-
hasMore: z.boolean().describe("Whether there are more results available"),
|
|
15
|
+
hasMore: z.boolean().describe("Whether there are more results available").nullable(),
|
|
16
16
|
endingBefore: z.string().describe("Cursor for fetching the previous page of results").nullable().optional(),
|
|
17
17
|
startingAfter: z.string().describe("Cursor for fetching the next page of results").nullable().optional()
|
|
18
|
-
}).describe("Metadata object for pagination of list trips.");
|
|
18
|
+
}).passthrough().describe("Metadata object for pagination of list trips.");
|
|
19
19
|
const RadarListTrips_DestinationLocationSchema = z.object({
|
|
20
|
-
latitude: z.number().describe("Latitude of the trip destination"),
|
|
21
|
-
longitude: z.number().describe("Longitude of the trip destination")
|
|
22
|
-
}).describe("Destination location coordinates for a trip.");
|
|
20
|
+
latitude: z.number().describe("Latitude of the trip destination").nullable(),
|
|
21
|
+
longitude: z.number().describe("Longitude of the trip destination").nullable()
|
|
22
|
+
}).passthrough().describe("Destination location coordinates for a trip.");
|
|
23
23
|
const RadarListTrips_TripSchema = z.object({
|
|
24
24
|
_id: z.string().describe("Unique Radar trip ID").nullable().optional(),
|
|
25
25
|
eta: z.number().describe("Estimated time of arrival in seconds").nullable().optional(),
|
|
@@ -41,7 +41,7 @@ const RadarListTrips_TripSchema = z.object({
|
|
|
41
41
|
approachingThreshold: z.number().int().describe("Distance threshold in meters for approaching destination").nullable().optional(),
|
|
42
42
|
destinationGeofenceTag: z.string().describe("Tag of destination geofence").nullable().optional(),
|
|
43
43
|
destinationGeofenceExternalId: z.string().describe("External ID of destination geofence").nullable().optional()
|
|
44
|
-
}).describe("Trip object returned by Radar.");
|
|
44
|
+
}).passthrough().describe("Trip object returned by Radar.");
|
|
45
45
|
const radarListTrips = action("RADAR_LIST_TRIPS", {
|
|
46
46
|
slug: "radar-list-trips",
|
|
47
47
|
name: "List Trips",
|
|
@@ -50,7 +50,7 @@ const radarListTrips = action("RADAR_LIST_TRIPS", {
|
|
|
50
50
|
output: z.object({
|
|
51
51
|
meta: RadarListTrips_ListTripsMetaSchema.nullable(),
|
|
52
52
|
trips: z.array(RadarListTrips_TripSchema).describe("List of trip objects")
|
|
53
|
-
}).describe("Response model for LIST_TRIPS, containing a list of trip objects and pagination metadata.")
|
|
53
|
+
}).passthrough().describe("Response model for LIST_TRIPS, containing a list of trip objects and pagination metadata.")
|
|
54
54
|
});
|
|
55
55
|
//#endregion
|
|
56
56
|
export { radarListTrips };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-trips.mjs","names":[],"sources":["../../src/actions/list-trips.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListTripsInput
|
|
1
|
+
{"version":3,"file":"list-trips.mjs","names":[],"sources":["../../src/actions/list-trips.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListTripsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of trips to return (1–100). Defaults to 100 when omitted.\").optional(),\n userId: z.string().describe(\"Filter trips by Radar user ID.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter trips by metadata key/value pairs.\").optional(),\n externalId: z.string().describe(\"Filter trips by external ID.\").optional(),\n endingBefore: z.string().describe(\"Return trips ending immediately before this trip ID.\").optional(),\n startingAfter: z.string().describe(\"Return trips starting immediately after this trip ID.\").optional(),\n}).describe(\"Request model for LIST_TRIPS.\");\nconst RadarListTrips_ListTripsMetaSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n limit: z.number().int().describe(\"Maximum number of items per page\").nullable().optional(),\n hasMore: z.boolean().describe(\"Whether there are more results available\").nullable(),\n endingBefore: z.string().describe(\"Cursor for fetching the previous page of results\").nullable().optional(),\n startingAfter: z.string().describe(\"Cursor for fetching the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Metadata object for pagination of list trips.\");\nconst RadarListTrips_DestinationLocationSchema = z.object({\n latitude: z.number().describe(\"Latitude of the trip destination\").nullable(),\n longitude: z.number().describe(\"Longitude of the trip destination\").nullable(),\n}).passthrough().describe(\"Destination location coordinates for a trip.\");\nconst RadarListTrips_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n live: z.boolean().describe(\"Whether the trip is live\").nullable().optional(),\n mode: z.string().describe(\"Mode of transport (e.g., car, bike, foot)\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n issues: z.array(z.unknown()).describe(\"Issues detected during the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\n userId: z.string().describe(\"Radar user ID associated with the trip\").nullable().optional(),\n distance: z.number().describe(\"Distance traveled in meters\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data for the trip\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO8601 format\").nullable().optional(),\n locations: z.array(z.unknown()).describe(\"Locations tracked during the trip\").nullable().optional(),\n startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\n externalId: z.string().describe(\"External trip ID\").nullable().optional(),\n completedAt: z.string().describe(\"Completion timestamp in ISO8601 format if completed\").nullable().optional(),\n destinationLocation: RadarListTrips_DestinationLocationSchema.nullable().optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching destination\").nullable().optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").nullable().optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").nullable().optional(),\n}).passthrough().describe(\"Trip object returned by Radar.\");\nexport const RadarListTripsOutput = z.object({\n meta: RadarListTrips_ListTripsMetaSchema.nullable(),\n trips: z.array(RadarListTrips_TripSchema).describe(\"List of trip objects\"),\n}).passthrough().describe(\"Response model for LIST_TRIPS, containing a list of trip objects and pagination metadata.\");\n\nexport const radarListTrips = action(\"RADAR_LIST_TRIPS\", {\n slug: \"radar-list-trips\",\n name: \"List Trips\",\n description: \"Tool to list all trips, sorted by updated time. Use when you need to page through the latest trips.\",\n input: RadarListTripsInput,\n output: RadarListTripsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,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;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkC,EAAE,OAAO;EAC3C,MAAM,mCAAmC,SAAS;EAClD,OAAO,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,sBAAsB;CAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAOhB;AACV,CAAC"}
|
|
@@ -11,24 +11,24 @@ const RadarListUsersInput = zod.z.object({
|
|
|
11
11
|
updatedBefore: zod.z.string().describe("Only return users updated before this ISO 8601 timestamp").optional()
|
|
12
12
|
}).describe("Request model for listing users with optional filtering and pagination.");
|
|
13
13
|
const RadarListUsers_MetaSchema = zod.z.object({
|
|
14
|
-
code: zod.z.number().int().describe("HTTP status code returned by the API"),
|
|
15
|
-
hasMore: zod.z.boolean().describe("Whether there are more users to fetch")
|
|
16
|
-
}).describe("Pagination metadata for list users response.");
|
|
14
|
+
code: zod.z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
15
|
+
hasMore: zod.z.boolean().describe("Whether there are more users to fetch").nullable()
|
|
16
|
+
}).passthrough().describe("Pagination metadata for list users response.");
|
|
17
17
|
const RadarListUsers_UserSchema = zod.z.object({
|
|
18
|
-
_id: zod.z.string().describe("Internal Radar identifier for the user"),
|
|
18
|
+
_id: zod.z.string().describe("Internal Radar identifier for the user").nullable(),
|
|
19
19
|
live: zod.z.boolean().describe("Whether this is a live (not test) user").nullable().optional(),
|
|
20
20
|
userId: zod.z.string().describe("Custom unique identifier for the user (may be absent if only deviceId was provided)").nullable().optional(),
|
|
21
21
|
stopped: zod.z.boolean().describe("Whether the user is currently stopped").nullable().optional(),
|
|
22
22
|
deviceId: zod.z.string().describe("Identifier for the user's device").nullable().optional(),
|
|
23
|
-
metadata: zod.z.
|
|
24
|
-
createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
25
|
-
updatedAt: zod.z.string().describe("Last updated timestamp in ISO 8601 format"),
|
|
23
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the user").nullable().optional(),
|
|
24
|
+
createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
25
|
+
updatedAt: zod.z.string().describe("Last updated timestamp in ISO 8601 format").nullable(),
|
|
26
26
|
foreground: zod.z.boolean().describe("Whether the app was in foreground for last location update").nullable().optional()
|
|
27
27
|
}).passthrough().describe("User object returned by Radar.");
|
|
28
28
|
const RadarListUsersOutput = zod.z.object({
|
|
29
29
|
meta: RadarListUsers_MetaSchema.nullable(),
|
|
30
30
|
users: zod.z.array(RadarListUsers_UserSchema).describe("List of user objects")
|
|
31
|
-
}).describe("Response model for LIST_USERS, containing users and pagination metadata.");
|
|
31
|
+
}).passthrough().describe("Response model for LIST_USERS, containing users and pagination metadata.");
|
|
32
32
|
const radarListUsers = require_action.action("RADAR_LIST_USERS", {
|
|
33
33
|
slug: "radar-list-users",
|
|
34
34
|
name: "List Users",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListUsersInput = z.object({\n tags: z.array(z.string()).describe(\"Only return users who have all of these tags\").optional(),\n limit: z.number().int().describe(\"Maximum number of users to return\").optional(),\n afterId: z.string().describe(\"User ID after which to return users for pagination\").optional(),\n createdAfter: z.string().describe(\"Only return users created after this ISO 8601 timestamp\").optional(),\n updatedAfter: z.string().describe(\"Only return users updated after this ISO 8601 timestamp\").optional(),\n createdBefore: z.string().describe(\"Only return users created before this ISO 8601 timestamp\").optional(),\n updatedBefore: z.string().describe(\"Only return users updated before this ISO 8601 timestamp\").optional(),\n}).describe(\"Request model for listing users with optional filtering and pagination.\");\nconst RadarListUsers_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more users to fetch\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list users response.\");\nconst RadarListUsers_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar identifier for the user\").nullable(),\n live: z.boolean().describe(\"Whether this is a live (not test) user\").nullable().optional(),\n userId: z.string().describe(\"Custom unique identifier for the user (may be absent if only deviceId was provided)\").nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user is currently stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Identifier for the user's device\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the user\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n updatedAt: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\n foreground: z.boolean().describe(\"Whether the app was in foreground for last location update\").nullable().optional(),\n}).passthrough().describe(\"User object returned by Radar.\");\nexport const RadarListUsersOutput = z.object({\n meta: RadarListUsers_MetaSchema.nullable(),\n users: z.array(RadarListUsers_UserSchema).describe(\"List of user objects\"),\n}).passthrough().describe(\"Response model for LIST_USERS, containing users and pagination metadata.\");\n\nexport const radarListUsers = action(\"RADAR_LIST_USERS\", {\n slug: \"radar-list-users\",\n name: \"List Users\",\n description: \"Tool to list Radar users sorted by update time. Use when you need to page through users in your project.\",\n input: RadarListUsersInput,\n output: RadarListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAA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,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAM,0BAA0B,SAAS;CACzC,OAAOA,IAAAA,EAAE,MAAM,yBAAyB,CAAC,CAAC,SAAS,sBAAsB;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const RadarListUsersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarListUsersInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
afterId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
createdAfter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
updatedAfter: z.ZodOptional<z.ZodString>;
|
|
10
|
+
createdBefore: z.ZodOptional<z.ZodString>;
|
|
11
|
+
updatedBefore: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const RadarListUsersOutput: z.ZodObject<{
|
|
14
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
users: z.ZodArray<z.ZodObject<{
|
|
19
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
stopped: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
26
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
27
|
+
foreground: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
|
+
declare const radarListUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
|
+
tags?: string[] | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
afterId?: string | undefined;
|
|
34
|
+
createdAfter?: string | undefined;
|
|
35
|
+
updatedAfter?: string | undefined;
|
|
36
|
+
createdBefore?: string | undefined;
|
|
37
|
+
updatedBefore?: string | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { radarListUsers };
|
|
9
41
|
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;cAwBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const RadarListUsersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarListUsersInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
afterId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
createdAfter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
updatedAfter: z.ZodOptional<z.ZodString>;
|
|
10
|
+
createdBefore: z.ZodOptional<z.ZodString>;
|
|
11
|
+
updatedBefore: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const RadarListUsersOutput: z.ZodObject<{
|
|
14
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
hasMore: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
users: z.ZodArray<z.ZodObject<{
|
|
19
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
20
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
stopped: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
26
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
27
|
+
foreground: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
|
+
declare const radarListUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
|
+
tags?: string[] | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
afterId?: string | undefined;
|
|
34
|
+
createdAfter?: string | undefined;
|
|
35
|
+
updatedAfter?: string | undefined;
|
|
36
|
+
createdBefore?: string | undefined;
|
|
37
|
+
updatedBefore?: string | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { radarListUsers };
|
|
9
41
|
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;cAwBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -11,18 +11,18 @@ const RadarListUsersInput = z.object({
|
|
|
11
11
|
updatedBefore: z.string().describe("Only return users updated before this ISO 8601 timestamp").optional()
|
|
12
12
|
}).describe("Request model for listing users with optional filtering and pagination.");
|
|
13
13
|
const RadarListUsers_MetaSchema = z.object({
|
|
14
|
-
code: z.number().int().describe("HTTP status code returned by the API"),
|
|
15
|
-
hasMore: z.boolean().describe("Whether there are more users to fetch")
|
|
16
|
-
}).describe("Pagination metadata for list users response.");
|
|
14
|
+
code: z.number().int().describe("HTTP status code returned by the API").nullable(),
|
|
15
|
+
hasMore: z.boolean().describe("Whether there are more users to fetch").nullable()
|
|
16
|
+
}).passthrough().describe("Pagination metadata for list users response.");
|
|
17
17
|
const RadarListUsers_UserSchema = z.object({
|
|
18
|
-
_id: z.string().describe("Internal Radar identifier for the user"),
|
|
18
|
+
_id: z.string().describe("Internal Radar identifier for the user").nullable(),
|
|
19
19
|
live: z.boolean().describe("Whether this is a live (not test) user").nullable().optional(),
|
|
20
20
|
userId: z.string().describe("Custom unique identifier for the user (may be absent if only deviceId was provided)").nullable().optional(),
|
|
21
21
|
stopped: z.boolean().describe("Whether the user is currently stopped").nullable().optional(),
|
|
22
22
|
deviceId: z.string().describe("Identifier for the user's device").nullable().optional(),
|
|
23
|
-
metadata: z.
|
|
24
|
-
createdAt: z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
25
|
-
updatedAt: z.string().describe("Last updated timestamp in ISO 8601 format"),
|
|
23
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata for the user").nullable().optional(),
|
|
24
|
+
createdAt: z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
25
|
+
updatedAt: z.string().describe("Last updated timestamp in ISO 8601 format").nullable(),
|
|
26
26
|
foreground: z.boolean().describe("Whether the app was in foreground for last location update").nullable().optional()
|
|
27
27
|
}).passthrough().describe("User object returned by Radar.");
|
|
28
28
|
const radarListUsers = action("RADAR_LIST_USERS", {
|
|
@@ -33,7 +33,7 @@ const radarListUsers = action("RADAR_LIST_USERS", {
|
|
|
33
33
|
output: z.object({
|
|
34
34
|
meta: RadarListUsers_MetaSchema.nullable(),
|
|
35
35
|
users: z.array(RadarListUsers_UserSchema).describe("List of user objects")
|
|
36
|
-
}).describe("Response model for LIST_USERS, containing users and pagination metadata.")
|
|
36
|
+
}).passthrough().describe("Response model for LIST_USERS, containing users and pagination metadata.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { radarListUsers };
|