@keystrokehq/platerecognizer 0.1.2 → 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.
@@ -3,12 +3,12 @@ let zod = require("zod");
3
3
  //#region src/actions/read-license-plate.ts
4
4
  const PlaterecognizerReadLicensePlateInput = zod.z.object({
5
5
  mmc: zod.z.boolean().describe("Predict vehicle make, model, orientation, color, and year. Set to true if this feature is enabled on your account. Default is false.").optional(),
6
- config: zod.z.object({}).describe("Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.").optional(),
6
+ config: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.").optional(),
7
7
  upload: zod.z.union([zod.z.object({
8
8
  name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
9
9
  s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
10
10
  mimetype: zod.z.string().describe("The MIME type of the file")
11
- }), zod.z.string()]).optional(),
11
+ }).passthrough(), zod.z.string()]).optional(),
12
12
  regions: zod.z.array(zod.z.string()).describe("Match license plate pattern of specific states/countries. Accepts multiple country/state codes. Examples: ['us-ca', 'gb', 'de']. See API documentation for full list of region codes.").optional(),
13
13
  camera_id: zod.z.string().describe("Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.").optional(),
14
14
  direction: zod.z.boolean().describe("Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.").optional(),
@@ -20,37 +20,37 @@ const PlaterecognizerReadLicensePlate_BoxSchema = zod.z.object({
20
20
  xmin: zod.z.number().int().describe("Minimum x coordinate").nullable().optional(),
21
21
  ymax: zod.z.number().int().describe("Maximum y coordinate").nullable().optional(),
22
22
  ymin: zod.z.number().int().describe("Minimum y coordinate").nullable().optional()
23
- }).describe("Bounding box coordinates.");
23
+ }).passthrough().describe("Bounding box coordinates.");
24
24
  const PlaterecognizerReadLicensePlate_YearRangeSchema = zod.z.object({
25
25
  max: zod.z.number().int().describe("Maximum year estimate").nullable().optional(),
26
26
  min: zod.z.number().int().describe("Minimum year estimate").nullable().optional()
27
- }).describe("Vehicle year range estimate.");
27
+ }).passthrough().describe("Vehicle year range estimate.");
28
28
  const PlaterecognizerReadLicensePlate_ColorPredictionSchema = zod.z.object({
29
29
  color: zod.z.string().describe("Predicted color name").nullable().optional(),
30
30
  score: zod.z.number().describe("Confidence score (0-1)").nullable().optional()
31
- }).describe("Vehicle color prediction.");
31
+ }).passthrough().describe("Vehicle color prediction.");
32
32
  const PlaterecognizerReadLicensePlate_RegionSchema = zod.z.object({
33
33
  code: zod.z.string().describe("Region/country code (e.g., 'us-ca', 'gb')").nullable().optional(),
34
34
  score: zod.z.number().describe("Confidence score for region detection (0-1)").nullable().optional()
35
- }).describe("License plate region information.");
35
+ }).passthrough().describe("License plate region information.");
36
36
  const PlaterecognizerReadLicensePlate_VehicleSchema = zod.z.object({
37
37
  box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
38
38
  type: zod.z.string().describe("Vehicle type (e.g., 'Car')").nullable().optional(),
39
39
  score: zod.z.number().describe("Confidence score for vehicle detection (0-1)").nullable().optional()
40
- }).describe("Vehicle detection information.");
40
+ }).passthrough().describe("Vehicle detection information.");
41
41
  const PlaterecognizerReadLicensePlate_CandidateSchema = zod.z.object({
42
42
  plate: zod.z.string().describe("Alternative plate text").nullable().optional(),
43
43
  score: zod.z.number().describe("Confidence score for this candidate (0-1)").nullable().optional()
44
- }).describe("Alternative plate prediction.");
44
+ }).passthrough().describe("Alternative plate prediction.");
45
45
  const PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = zod.z.object({
46
46
  make: zod.z.string().describe("Vehicle make").nullable().optional(),
47
47
  model: zod.z.string().describe("Vehicle model").nullable().optional(),
48
48
  score: zod.z.number().describe("Confidence score (0-1)").nullable().optional()
49
- }).describe("Vehicle make and model prediction.");
49
+ }).passthrough().describe("Vehicle make and model prediction.");
50
50
  const PlaterecognizerReadLicensePlate_OrientationPredictionSchema = zod.z.object({
51
51
  score: zod.z.number().describe("Confidence score (0-1)").nullable().optional(),
52
52
  orientation: zod.z.string().describe("Vehicle orientation").nullable().optional()
53
- }).describe("Vehicle orientation prediction.");
53
+ }).passthrough().describe("Vehicle orientation prediction.");
54
54
  const PlaterecognizerReadLicensePlate_PlateResultSchema = zod.z.object({
55
55
  box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
56
56
  year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),
@@ -65,7 +65,7 @@ const PlaterecognizerReadLicensePlate_PlateResultSchema = zod.z.object({
65
65
  model_make: zod.z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe("Vehicle make and model predictions (requires mmc=true)").nullable().optional(),
66
66
  orientation: zod.z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe("Vehicle orientation predictions (requires mmc=true)").nullable().optional(),
67
67
  direction_score: zod.z.number().describe("Confidence score for direction prediction (0-1)").nullable().optional()
68
- }).describe("Individual license plate detection result.");
68
+ }).passthrough().describe("Individual license plate detection result.");
69
69
  const PlaterecognizerReadLicensePlateOutput = zod.z.object({
70
70
  results: zod.z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe("List of detected license plates and their details").nullable().optional(),
71
71
  version: zod.z.number().int().describe("API version used").nullable().optional(),
@@ -73,7 +73,7 @@ const PlaterecognizerReadLicensePlateOutput = zod.z.object({
73
73
  camera_id: zod.z.string().describe("Camera identifier if provided in request").nullable().optional(),
74
74
  timestamp: zod.z.string().describe("Timestamp if provided in request").nullable().optional(),
75
75
  processing_time: zod.z.number().describe("Processing time in milliseconds").nullable().optional()
76
- }).describe("Response schema for ReadLicensePlate action.");
76
+ }).passthrough().describe("Response schema for ReadLicensePlate action.");
77
77
  const platerecognizerReadLicensePlate = require_action.action("PLATERECOGNIZER_READ_LICENSE_PLATE", {
78
78
  slug: "platerecognizer-read-license-plate",
79
79
  name: "Read License Plate",
@@ -1 +1 @@
1
- {"version":3,"file":"read-license-plate.cjs","names":["z","action"],"sources":["../../src/actions/read-license-plate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerReadLicensePlateInput = z.object({\n mmc: z.boolean().describe(\"Predict vehicle make, model, orientation, color, and year. Set to true if this feature is enabled on your account. Default is false.\").optional(),\n config: z.object({}).describe(\"Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.\").optional(),\n upload: z.union([z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}), z.string()]).optional(),\n regions: z.array(z.string()).describe(\"Match license plate pattern of specific states/countries. Accepts multiple country/state codes. Examples: ['us-ca', 'gb', 'de']. See API documentation for full list of region codes.\").optional(),\n camera_id: z.string().describe(\"Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.\").optional(),\n direction: z.boolean().describe(\"Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.\").optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp in UTC indicating when the image was captured. Example: 2019-08-19T13:11:25\").optional(),\n upload_url: z.string().describe(\"URL of the image to analyze for license plate recognition. Alternative to upload parameter. Example: https://example.com/car-image.jpg\").optional(),\n}).describe(\"Request schema for ReadLicensePlate action.\");\nconst PlaterecognizerReadLicensePlate_BoxSchema = z.object({\n xmax: z.number().int().describe(\"Maximum x coordinate\").nullable().optional(),\n xmin: z.number().int().describe(\"Minimum x coordinate\").nullable().optional(),\n ymax: z.number().int().describe(\"Maximum y coordinate\").nullable().optional(),\n ymin: z.number().int().describe(\"Minimum y coordinate\").nullable().optional(),\n}).describe(\"Bounding box coordinates.\");\nconst PlaterecognizerReadLicensePlate_YearRangeSchema = z.object({\n max: z.number().int().describe(\"Maximum year estimate\").nullable().optional(),\n min: z.number().int().describe(\"Minimum year estimate\").nullable().optional(),\n}).describe(\"Vehicle year range estimate.\");\nconst PlaterecognizerReadLicensePlate_ColorPredictionSchema = z.object({\n color: z.string().describe(\"Predicted color name\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).describe(\"Vehicle color prediction.\");\nconst PlaterecognizerReadLicensePlate_RegionSchema = z.object({\n code: z.string().describe(\"Region/country code (e.g., 'us-ca', 'gb')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for region detection (0-1)\").nullable().optional(),\n}).describe(\"License plate region information.\");\nconst PlaterecognizerReadLicensePlate_VehicleSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n type: z.string().describe(\"Vehicle type (e.g., 'Car')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for vehicle detection (0-1)\").nullable().optional(),\n}).describe(\"Vehicle detection information.\");\nconst PlaterecognizerReadLicensePlate_CandidateSchema = z.object({\n plate: z.string().describe(\"Alternative plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence score for this candidate (0-1)\").nullable().optional(),\n}).describe(\"Alternative plate prediction.\");\nconst PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = z.object({\n make: z.string().describe(\"Vehicle make\").nullable().optional(),\n model: z.string().describe(\"Vehicle model\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).describe(\"Vehicle make and model prediction.\");\nconst PlaterecognizerReadLicensePlate_OrientationPredictionSchema = z.object({\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n orientation: z.string().describe(\"Vehicle orientation\").nullable().optional(),\n}).describe(\"Vehicle orientation prediction.\");\nconst PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),\n color: z.array(PlaterecognizerReadLicensePlate_ColorPredictionSchema).describe(\"Vehicle color predictions (requires mmc=true)\").nullable().optional(),\n plate: z.string().describe(\"Detected license plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence level for plate text recognition (0-1)\").nullable().optional(),\n dscore: z.number().describe(\"Confidence level for plate detection (0-1)\").nullable().optional(),\n region: PlaterecognizerReadLicensePlate_RegionSchema.nullable().optional(),\n vehicle: PlaterecognizerReadLicensePlate_VehicleSchema.nullable().optional(),\n direction: z.number().describe(\"Direction of travel in degrees (requires direction=true)\").nullable().optional(),\n candidates: z.array(PlaterecognizerReadLicensePlate_CandidateSchema).describe(\"Alternative plate text predictions\").nullable().optional(),\n model_make: z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe(\"Vehicle make and model predictions (requires mmc=true)\").nullable().optional(),\n orientation: z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe(\"Vehicle orientation predictions (requires mmc=true)\").nullable().optional(),\n direction_score: z.number().describe(\"Confidence score for direction prediction (0-1)\").nullable().optional(),\n}).describe(\"Individual license plate detection result.\");\nexport const PlaterecognizerReadLicensePlateOutput = z.object({\n results: z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe(\"List of detected license plates and their details\").nullable().optional(),\n version: z.number().int().describe(\"API version used\").nullable().optional(),\n filename: z.string().describe(\"Name of the processed file or URL\").nullable().optional(),\n camera_id: z.string().describe(\"Camera identifier if provided in request\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp if provided in request\").nullable().optional(),\n processing_time: z.number().describe(\"Processing time in milliseconds\").nullable().optional(),\n}).describe(\"Response schema for ReadLicensePlate action.\");\n\nexport const platerecognizerReadLicensePlate = action(\"PLATERECOGNIZER_READ_LICENSE_PLATE\", {\n slug: \"platerecognizer-read-license-plate\",\n name: \"Read License Plate\",\n description: \"Tool to read license plates from images with confidence scores and optional vehicle details. Use when you need to extract license plate text, region information, or analyze vehicle attributes from images.\",\n input: PlaterecognizerReadLicensePlateInput,\n output: PlaterecognizerReadLicensePlateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC3K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CACxP,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACxB,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACxO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;AACrL,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAA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AC5D,SAASA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"read-license-plate.cjs","names":["z","action"],"sources":["../../src/actions/read-license-plate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerReadLicensePlateInput = z.object({\n mmc: z.boolean().describe(\"Predict vehicle make, model, orientation, color, and year. Set to true if this feature is enabled on your account. Default is false.\").optional(),\n config: z.record(z.string(), z.unknown()).describe(\"Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.\").optional(),\n upload: z.union([z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).passthrough(), z.string()]).optional(),\n regions: z.array(z.string()).describe(\"Match license plate pattern of specific states/countries. Accepts multiple country/state codes. Examples: ['us-ca', 'gb', 'de']. See API documentation for full list of region codes.\").optional(),\n camera_id: z.string().describe(\"Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.\").optional(),\n direction: z.boolean().describe(\"Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.\").optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp in UTC indicating when the image was captured. Example: 2019-08-19T13:11:25\").optional(),\n upload_url: z.string().describe(\"URL of the image to analyze for license plate recognition. Alternative to upload parameter. Example: https://example.com/car-image.jpg\").optional(),\n}).describe(\"Request schema for ReadLicensePlate action.\");\nconst PlaterecognizerReadLicensePlate_BoxSchema = z.object({\n xmax: z.number().int().describe(\"Maximum x coordinate\").nullable().optional(),\n xmin: z.number().int().describe(\"Minimum x coordinate\").nullable().optional(),\n ymax: z.number().int().describe(\"Maximum y coordinate\").nullable().optional(),\n ymin: z.number().int().describe(\"Minimum y coordinate\").nullable().optional(),\n}).passthrough().describe(\"Bounding box coordinates.\");\nconst PlaterecognizerReadLicensePlate_YearRangeSchema = z.object({\n max: z.number().int().describe(\"Maximum year estimate\").nullable().optional(),\n min: z.number().int().describe(\"Minimum year estimate\").nullable().optional(),\n}).passthrough().describe(\"Vehicle year range estimate.\");\nconst PlaterecognizerReadLicensePlate_ColorPredictionSchema = z.object({\n color: z.string().describe(\"Predicted color name\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Vehicle color prediction.\");\nconst PlaterecognizerReadLicensePlate_RegionSchema = z.object({\n code: z.string().describe(\"Region/country code (e.g., 'us-ca', 'gb')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for region detection (0-1)\").nullable().optional(),\n}).passthrough().describe(\"License plate region information.\");\nconst PlaterecognizerReadLicensePlate_VehicleSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n type: z.string().describe(\"Vehicle type (e.g., 'Car')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for vehicle detection (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Vehicle detection information.\");\nconst PlaterecognizerReadLicensePlate_CandidateSchema = z.object({\n plate: z.string().describe(\"Alternative plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence score for this candidate (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Alternative plate prediction.\");\nconst PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = z.object({\n make: z.string().describe(\"Vehicle make\").nullable().optional(),\n model: z.string().describe(\"Vehicle model\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Vehicle make and model prediction.\");\nconst PlaterecognizerReadLicensePlate_OrientationPredictionSchema = z.object({\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n orientation: z.string().describe(\"Vehicle orientation\").nullable().optional(),\n}).passthrough().describe(\"Vehicle orientation prediction.\");\nconst PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),\n color: z.array(PlaterecognizerReadLicensePlate_ColorPredictionSchema).describe(\"Vehicle color predictions (requires mmc=true)\").nullable().optional(),\n plate: z.string().describe(\"Detected license plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence level for plate text recognition (0-1)\").nullable().optional(),\n dscore: z.number().describe(\"Confidence level for plate detection (0-1)\").nullable().optional(),\n region: PlaterecognizerReadLicensePlate_RegionSchema.nullable().optional(),\n vehicle: PlaterecognizerReadLicensePlate_VehicleSchema.nullable().optional(),\n direction: z.number().describe(\"Direction of travel in degrees (requires direction=true)\").nullable().optional(),\n candidates: z.array(PlaterecognizerReadLicensePlate_CandidateSchema).describe(\"Alternative plate text predictions\").nullable().optional(),\n model_make: z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe(\"Vehicle make and model predictions (requires mmc=true)\").nullable().optional(),\n orientation: z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe(\"Vehicle orientation predictions (requires mmc=true)\").nullable().optional(),\n direction_score: z.number().describe(\"Confidence score for direction prediction (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Individual license plate detection result.\");\nexport const PlaterecognizerReadLicensePlateOutput = z.object({\n results: z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe(\"List of detected license plates and their details\").nullable().optional(),\n version: z.number().int().describe(\"API version used\").nullable().optional(),\n filename: z.string().describe(\"Name of the processed file or URL\").nullable().optional(),\n camera_id: z.string().describe(\"Camera identifier if provided in request\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp if provided in request\").nullable().optional(),\n processing_time: z.number().describe(\"Processing time in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for ReadLicensePlate action.\");\n\nexport const platerecognizerReadLicensePlate = action(\"PLATERECOGNIZER_READ_LICENSE_PLATE\", {\n slug: \"platerecognizer-read-license-plate\",\n name: \"Read License Plate\",\n description: \"Tool to read license plates from images with confidence scores and optional vehicle details. Use when you need to extract license plate text, region information, or analyze vehicle attributes from images.\",\n input: PlaterecognizerReadLicensePlateInput,\n output: PlaterecognizerReadLicensePlateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC3K,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CAC7Q,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFA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C,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -3,12 +3,12 @@ import { z } from "zod";
3
3
  //#region src/actions/read-license-plate.d.ts
4
4
  declare const PlaterecognizerReadLicensePlateInput: z.ZodObject<{
5
5
  mmc: z.ZodOptional<z.ZodBoolean>;
6
- config: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
6
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
7
  upload: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
8
8
  name: z.ZodString;
9
9
  s3key: z.ZodString;
10
10
  mimetype: z.ZodString;
11
- }, z.core.$strip>, z.ZodString]>>;
11
+ }, z.core.$loose>, z.ZodString]>>;
12
12
  regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
13
  camera_id: z.ZodOptional<z.ZodString>;
14
14
  direction: z.ZodOptional<z.ZodBoolean>;
@@ -22,58 +22,59 @@ declare const PlaterecognizerReadLicensePlateOutput: z.ZodObject<{
22
22
  xmin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  ymax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  ymin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  year: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
28
  min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  color: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
31
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
- }, z.core.$strip>>>>;
33
+ }, z.core.$loose>>>>;
34
34
  plate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
36
  dscore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
37
  region: z.ZodOptional<z.ZodNullable<z.ZodObject<{
38
38
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
- }, z.core.$strip>>>;
40
+ }, z.core.$loose>>>;
41
41
  vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  box: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
43
  xmax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
44
  xmin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
45
  ymax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
46
  ymin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
- }, z.core.$strip>>>;
47
+ }, z.core.$loose>>>;
48
48
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
- }, z.core.$strip>>>;
50
+ }, z.core.$loose>>>;
51
51
  direction: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
52
  candidates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
53
  plate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
- }, z.core.$strip>>>>;
55
+ }, z.core.$loose>>>>;
56
56
  model_make: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
57
57
  make: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
- }, z.core.$strip>>>>;
60
+ }, z.core.$loose>>>>;
61
61
  orientation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
62
62
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
63
63
  orientation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
- }, z.core.$strip>>>>;
64
+ }, z.core.$loose>>>>;
65
65
  direction_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
- }, z.core.$strip>>>>;
66
+ }, z.core.$loose>>>>;
67
67
  version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
68
  filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  camera_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  processing_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
- }, z.core.$strip>;
72
+ }, z.core.$loose>;
73
73
  declare const platerecognizerReadLicensePlate: import("@keystrokehq/action").WorkflowActionDefinition<{
74
74
  mmc?: boolean | undefined;
75
- config?: Record<string, never> | undefined;
75
+ config?: Record<string, unknown> | undefined;
76
76
  upload?: string | {
77
+ [x: string]: unknown;
77
78
  name: string;
78
79
  s3key: string;
79
80
  mimetype: string;
@@ -3,12 +3,12 @@ import { z } from "zod";
3
3
  //#region src/actions/read-license-plate.d.ts
4
4
  declare const PlaterecognizerReadLicensePlateInput: z.ZodObject<{
5
5
  mmc: z.ZodOptional<z.ZodBoolean>;
6
- config: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
6
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
7
  upload: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
8
8
  name: z.ZodString;
9
9
  s3key: z.ZodString;
10
10
  mimetype: z.ZodString;
11
- }, z.core.$strip>, z.ZodString]>>;
11
+ }, z.core.$loose>, z.ZodString]>>;
12
12
  regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
13
  camera_id: z.ZodOptional<z.ZodString>;
14
14
  direction: z.ZodOptional<z.ZodBoolean>;
@@ -22,58 +22,59 @@ declare const PlaterecognizerReadLicensePlateOutput: z.ZodObject<{
22
22
  xmin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  ymax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  ymin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
- }, z.core.$strip>>>;
25
+ }, z.core.$loose>>>;
26
26
  year: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
28
  min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
- }, z.core.$strip>>>;
29
+ }, z.core.$loose>>>;
30
30
  color: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
31
  color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
- }, z.core.$strip>>>>;
33
+ }, z.core.$loose>>>>;
34
34
  plate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
36
  dscore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
37
  region: z.ZodOptional<z.ZodNullable<z.ZodObject<{
38
38
  code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
- }, z.core.$strip>>>;
40
+ }, z.core.$loose>>>;
41
41
  vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  box: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
43
  xmax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
44
  xmin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
45
  ymax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
46
  ymin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
- }, z.core.$strip>>>;
47
+ }, z.core.$loose>>>;
48
48
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
- }, z.core.$strip>>>;
50
+ }, z.core.$loose>>>;
51
51
  direction: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
52
  candidates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
53
53
  plate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
- }, z.core.$strip>>>>;
55
+ }, z.core.$loose>>>>;
56
56
  model_make: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
57
57
  make: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
- }, z.core.$strip>>>>;
60
+ }, z.core.$loose>>>>;
61
61
  orientation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
62
62
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
63
63
  orientation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
- }, z.core.$strip>>>>;
64
+ }, z.core.$loose>>>>;
65
65
  direction_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
- }, z.core.$strip>>>>;
66
+ }, z.core.$loose>>>>;
67
67
  version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
68
  filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
69
  camera_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  processing_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
- }, z.core.$strip>;
72
+ }, z.core.$loose>;
73
73
  declare const platerecognizerReadLicensePlate: import("@keystrokehq/action").WorkflowActionDefinition<{
74
74
  mmc?: boolean | undefined;
75
- config?: Record<string, never> | undefined;
75
+ config?: Record<string, unknown> | undefined;
76
76
  upload?: string | {
77
+ [x: string]: unknown;
77
78
  name: string;
78
79
  s3key: string;
79
80
  mimetype: string;
@@ -3,12 +3,12 @@ import { z } from "zod";
3
3
  //#region src/actions/read-license-plate.ts
4
4
  const PlaterecognizerReadLicensePlateInput = z.object({
5
5
  mmc: z.boolean().describe("Predict vehicle make, model, orientation, color, and year. Set to true if this feature is enabled on your account. Default is false.").optional(),
6
- config: z.object({}).describe("Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.").optional(),
6
+ config: z.record(z.string(), z.unknown()).describe("Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.").optional(),
7
7
  upload: z.union([z.object({
8
8
  name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
9
9
  s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
10
10
  mimetype: z.string().describe("The MIME type of the file")
11
- }), z.string()]).optional(),
11
+ }).passthrough(), z.string()]).optional(),
12
12
  regions: z.array(z.string()).describe("Match license plate pattern of specific states/countries. Accepts multiple country/state codes. Examples: ['us-ca', 'gb', 'de']. See API documentation for full list of region codes.").optional(),
13
13
  camera_id: z.string().describe("Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.").optional(),
14
14
  direction: z.boolean().describe("Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.").optional(),
@@ -20,37 +20,37 @@ const PlaterecognizerReadLicensePlate_BoxSchema = z.object({
20
20
  xmin: z.number().int().describe("Minimum x coordinate").nullable().optional(),
21
21
  ymax: z.number().int().describe("Maximum y coordinate").nullable().optional(),
22
22
  ymin: z.number().int().describe("Minimum y coordinate").nullable().optional()
23
- }).describe("Bounding box coordinates.");
23
+ }).passthrough().describe("Bounding box coordinates.");
24
24
  const PlaterecognizerReadLicensePlate_YearRangeSchema = z.object({
25
25
  max: z.number().int().describe("Maximum year estimate").nullable().optional(),
26
26
  min: z.number().int().describe("Minimum year estimate").nullable().optional()
27
- }).describe("Vehicle year range estimate.");
27
+ }).passthrough().describe("Vehicle year range estimate.");
28
28
  const PlaterecognizerReadLicensePlate_ColorPredictionSchema = z.object({
29
29
  color: z.string().describe("Predicted color name").nullable().optional(),
30
30
  score: z.number().describe("Confidence score (0-1)").nullable().optional()
31
- }).describe("Vehicle color prediction.");
31
+ }).passthrough().describe("Vehicle color prediction.");
32
32
  const PlaterecognizerReadLicensePlate_RegionSchema = z.object({
33
33
  code: z.string().describe("Region/country code (e.g., 'us-ca', 'gb')").nullable().optional(),
34
34
  score: z.number().describe("Confidence score for region detection (0-1)").nullable().optional()
35
- }).describe("License plate region information.");
35
+ }).passthrough().describe("License plate region information.");
36
36
  const PlaterecognizerReadLicensePlate_VehicleSchema = z.object({
37
37
  box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
38
38
  type: z.string().describe("Vehicle type (e.g., 'Car')").nullable().optional(),
39
39
  score: z.number().describe("Confidence score for vehicle detection (0-1)").nullable().optional()
40
- }).describe("Vehicle detection information.");
40
+ }).passthrough().describe("Vehicle detection information.");
41
41
  const PlaterecognizerReadLicensePlate_CandidateSchema = z.object({
42
42
  plate: z.string().describe("Alternative plate text").nullable().optional(),
43
43
  score: z.number().describe("Confidence score for this candidate (0-1)").nullable().optional()
44
- }).describe("Alternative plate prediction.");
44
+ }).passthrough().describe("Alternative plate prediction.");
45
45
  const PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = z.object({
46
46
  make: z.string().describe("Vehicle make").nullable().optional(),
47
47
  model: z.string().describe("Vehicle model").nullable().optional(),
48
48
  score: z.number().describe("Confidence score (0-1)").nullable().optional()
49
- }).describe("Vehicle make and model prediction.");
49
+ }).passthrough().describe("Vehicle make and model prediction.");
50
50
  const PlaterecognizerReadLicensePlate_OrientationPredictionSchema = z.object({
51
51
  score: z.number().describe("Confidence score (0-1)").nullable().optional(),
52
52
  orientation: z.string().describe("Vehicle orientation").nullable().optional()
53
- }).describe("Vehicle orientation prediction.");
53
+ }).passthrough().describe("Vehicle orientation prediction.");
54
54
  const PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({
55
55
  box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
56
56
  year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),
@@ -65,7 +65,7 @@ const PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({
65
65
  model_make: z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe("Vehicle make and model predictions (requires mmc=true)").nullable().optional(),
66
66
  orientation: z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe("Vehicle orientation predictions (requires mmc=true)").nullable().optional(),
67
67
  direction_score: z.number().describe("Confidence score for direction prediction (0-1)").nullable().optional()
68
- }).describe("Individual license plate detection result.");
68
+ }).passthrough().describe("Individual license plate detection result.");
69
69
  const platerecognizerReadLicensePlate = action("PLATERECOGNIZER_READ_LICENSE_PLATE", {
70
70
  slug: "platerecognizer-read-license-plate",
71
71
  name: "Read License Plate",
@@ -78,7 +78,7 @@ const platerecognizerReadLicensePlate = action("PLATERECOGNIZER_READ_LICENSE_PLA
78
78
  camera_id: z.string().describe("Camera identifier if provided in request").nullable().optional(),
79
79
  timestamp: z.string().describe("Timestamp if provided in request").nullable().optional(),
80
80
  processing_time: z.number().describe("Processing time in milliseconds").nullable().optional()
81
- }).describe("Response schema for ReadLicensePlate action.")
81
+ }).passthrough().describe("Response schema for ReadLicensePlate action.")
82
82
  });
83
83
  //#endregion
84
84
  export { platerecognizerReadLicensePlate };
@@ -1 +1 @@
1
- {"version":3,"file":"read-license-plate.mjs","names":[],"sources":["../../src/actions/read-license-plate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerReadLicensePlateInput = z.object({\n mmc: z.boolean().describe(\"Predict vehicle make, model, orientation, color, and year. Set to true if this feature is enabled on your account. Default is false.\").optional(),\n config: z.object({}).describe(\"Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.\").optional(),\n upload: z.union([z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}), z.string()]).optional(),\n regions: z.array(z.string()).describe(\"Match license plate pattern of specific states/countries. Accepts multiple country/state codes. Examples: ['us-ca', 'gb', 'de']. See API documentation for full list of region codes.\").optional(),\n camera_id: z.string().describe(\"Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.\").optional(),\n direction: z.boolean().describe(\"Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.\").optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp in UTC indicating when the image was captured. Example: 2019-08-19T13:11:25\").optional(),\n upload_url: z.string().describe(\"URL of the image to analyze for license plate recognition. Alternative to upload parameter. Example: https://example.com/car-image.jpg\").optional(),\n}).describe(\"Request schema for ReadLicensePlate action.\");\nconst PlaterecognizerReadLicensePlate_BoxSchema = z.object({\n xmax: z.number().int().describe(\"Maximum x coordinate\").nullable().optional(),\n xmin: z.number().int().describe(\"Minimum x coordinate\").nullable().optional(),\n ymax: z.number().int().describe(\"Maximum y coordinate\").nullable().optional(),\n ymin: z.number().int().describe(\"Minimum y coordinate\").nullable().optional(),\n}).describe(\"Bounding box coordinates.\");\nconst PlaterecognizerReadLicensePlate_YearRangeSchema = z.object({\n max: z.number().int().describe(\"Maximum year estimate\").nullable().optional(),\n min: z.number().int().describe(\"Minimum year estimate\").nullable().optional(),\n}).describe(\"Vehicle year range estimate.\");\nconst PlaterecognizerReadLicensePlate_ColorPredictionSchema = z.object({\n color: z.string().describe(\"Predicted color name\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).describe(\"Vehicle color prediction.\");\nconst PlaterecognizerReadLicensePlate_RegionSchema = z.object({\n code: z.string().describe(\"Region/country code (e.g., 'us-ca', 'gb')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for region detection (0-1)\").nullable().optional(),\n}).describe(\"License plate region information.\");\nconst PlaterecognizerReadLicensePlate_VehicleSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n type: z.string().describe(\"Vehicle type (e.g., 'Car')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for vehicle detection (0-1)\").nullable().optional(),\n}).describe(\"Vehicle detection information.\");\nconst PlaterecognizerReadLicensePlate_CandidateSchema = z.object({\n plate: z.string().describe(\"Alternative plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence score for this candidate (0-1)\").nullable().optional(),\n}).describe(\"Alternative plate prediction.\");\nconst PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = z.object({\n make: z.string().describe(\"Vehicle make\").nullable().optional(),\n model: z.string().describe(\"Vehicle model\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).describe(\"Vehicle make and model prediction.\");\nconst PlaterecognizerReadLicensePlate_OrientationPredictionSchema = z.object({\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n orientation: z.string().describe(\"Vehicle orientation\").nullable().optional(),\n}).describe(\"Vehicle orientation prediction.\");\nconst PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),\n color: z.array(PlaterecognizerReadLicensePlate_ColorPredictionSchema).describe(\"Vehicle color predictions (requires mmc=true)\").nullable().optional(),\n plate: z.string().describe(\"Detected license plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence level for plate text recognition (0-1)\").nullable().optional(),\n dscore: z.number().describe(\"Confidence level for plate detection (0-1)\").nullable().optional(),\n region: PlaterecognizerReadLicensePlate_RegionSchema.nullable().optional(),\n vehicle: PlaterecognizerReadLicensePlate_VehicleSchema.nullable().optional(),\n direction: z.number().describe(\"Direction of travel in degrees (requires direction=true)\").nullable().optional(),\n candidates: z.array(PlaterecognizerReadLicensePlate_CandidateSchema).describe(\"Alternative plate text predictions\").nullable().optional(),\n model_make: z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe(\"Vehicle make and model predictions (requires mmc=true)\").nullable().optional(),\n orientation: z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe(\"Vehicle orientation predictions (requires mmc=true)\").nullable().optional(),\n direction_score: z.number().describe(\"Confidence score for direction prediction (0-1)\").nullable().optional(),\n}).describe(\"Individual license plate detection result.\");\nexport const PlaterecognizerReadLicensePlateOutput = z.object({\n results: z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe(\"List of detected license plates and their details\").nullable().optional(),\n version: z.number().int().describe(\"API version used\").nullable().optional(),\n filename: z.string().describe(\"Name of the processed file or URL\").nullable().optional(),\n camera_id: z.string().describe(\"Camera identifier if provided in request\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp if provided in request\").nullable().optional(),\n processing_time: z.number().describe(\"Processing time in milliseconds\").nullable().optional(),\n}).describe(\"Response schema for ReadLicensePlate action.\");\n\nexport const platerecognizerReadLicensePlate = action(\"PLATERECOGNIZER_READ_LICENSE_PLATE\", {\n slug: \"platerecognizer-read-license-plate\",\n name: \"Read License Plate\",\n description: \"Tool to read license plates from images with confidence scores and optional vehicle details. Use when you need to extract license plate text, region information, or analyze vehicle attributes from images.\",\n input: PlaterecognizerReadLicensePlateInput,\n output: PlaterecognizerReadLicensePlateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC3K,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CACxP,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACxB,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACxO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;AACrL,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,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C,SAAS;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"read-license-plate.mjs","names":[],"sources":["../../src/actions/read-license-plate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerReadLicensePlateInput = z.object({\n mmc: z.boolean().describe(\"Predict vehicle make, model, orientation, color, and year. Set to true if this feature is enabled on your account. Default is false.\").optional(),\n config: z.record(z.string(), z.unknown()).describe(\"Additional engine configuration as JSON. Options include detection_rule, detection_mode, region strict mode, thresholds, and mode (fast/redaction). See API documentation for detailed configuration options.\").optional(),\n upload: z.union([z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).passthrough(), z.string()]).optional(),\n regions: z.array(z.string()).describe(\"Match license plate pattern of specific states/countries. Accepts multiple country/state codes. Examples: ['us-ca', 'gb', 'de']. See API documentation for full list of region codes.\").optional(),\n camera_id: z.string().describe(\"Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.\").optional(),\n direction: z.boolean().describe(\"Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.\").optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp in UTC indicating when the image was captured. Example: 2019-08-19T13:11:25\").optional(),\n upload_url: z.string().describe(\"URL of the image to analyze for license plate recognition. Alternative to upload parameter. Example: https://example.com/car-image.jpg\").optional(),\n}).describe(\"Request schema for ReadLicensePlate action.\");\nconst PlaterecognizerReadLicensePlate_BoxSchema = z.object({\n xmax: z.number().int().describe(\"Maximum x coordinate\").nullable().optional(),\n xmin: z.number().int().describe(\"Minimum x coordinate\").nullable().optional(),\n ymax: z.number().int().describe(\"Maximum y coordinate\").nullable().optional(),\n ymin: z.number().int().describe(\"Minimum y coordinate\").nullable().optional(),\n}).passthrough().describe(\"Bounding box coordinates.\");\nconst PlaterecognizerReadLicensePlate_YearRangeSchema = z.object({\n max: z.number().int().describe(\"Maximum year estimate\").nullable().optional(),\n min: z.number().int().describe(\"Minimum year estimate\").nullable().optional(),\n}).passthrough().describe(\"Vehicle year range estimate.\");\nconst PlaterecognizerReadLicensePlate_ColorPredictionSchema = z.object({\n color: z.string().describe(\"Predicted color name\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Vehicle color prediction.\");\nconst PlaterecognizerReadLicensePlate_RegionSchema = z.object({\n code: z.string().describe(\"Region/country code (e.g., 'us-ca', 'gb')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for region detection (0-1)\").nullable().optional(),\n}).passthrough().describe(\"License plate region information.\");\nconst PlaterecognizerReadLicensePlate_VehicleSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n type: z.string().describe(\"Vehicle type (e.g., 'Car')\").nullable().optional(),\n score: z.number().describe(\"Confidence score for vehicle detection (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Vehicle detection information.\");\nconst PlaterecognizerReadLicensePlate_CandidateSchema = z.object({\n plate: z.string().describe(\"Alternative plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence score for this candidate (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Alternative plate prediction.\");\nconst PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = z.object({\n make: z.string().describe(\"Vehicle make\").nullable().optional(),\n model: z.string().describe(\"Vehicle model\").nullable().optional(),\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Vehicle make and model prediction.\");\nconst PlaterecognizerReadLicensePlate_OrientationPredictionSchema = z.object({\n score: z.number().describe(\"Confidence score (0-1)\").nullable().optional(),\n orientation: z.string().describe(\"Vehicle orientation\").nullable().optional(),\n}).passthrough().describe(\"Vehicle orientation prediction.\");\nconst PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({\n box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),\n year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),\n color: z.array(PlaterecognizerReadLicensePlate_ColorPredictionSchema).describe(\"Vehicle color predictions (requires mmc=true)\").nullable().optional(),\n plate: z.string().describe(\"Detected license plate text\").nullable().optional(),\n score: z.number().describe(\"Confidence level for plate text recognition (0-1)\").nullable().optional(),\n dscore: z.number().describe(\"Confidence level for plate detection (0-1)\").nullable().optional(),\n region: PlaterecognizerReadLicensePlate_RegionSchema.nullable().optional(),\n vehicle: PlaterecognizerReadLicensePlate_VehicleSchema.nullable().optional(),\n direction: z.number().describe(\"Direction of travel in degrees (requires direction=true)\").nullable().optional(),\n candidates: z.array(PlaterecognizerReadLicensePlate_CandidateSchema).describe(\"Alternative plate text predictions\").nullable().optional(),\n model_make: z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe(\"Vehicle make and model predictions (requires mmc=true)\").nullable().optional(),\n orientation: z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe(\"Vehicle orientation predictions (requires mmc=true)\").nullable().optional(),\n direction_score: z.number().describe(\"Confidence score for direction prediction (0-1)\").nullable().optional(),\n}).passthrough().describe(\"Individual license plate detection result.\");\nexport const PlaterecognizerReadLicensePlateOutput = z.object({\n results: z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe(\"List of detected license plates and their details\").nullable().optional(),\n version: z.number().int().describe(\"API version used\").nullable().optional(),\n filename: z.string().describe(\"Name of the processed file or URL\").nullable().optional(),\n camera_id: z.string().describe(\"Camera identifier if provided in request\").nullable().optional(),\n timestamp: z.string().describe(\"Timestamp if provided in request\").nullable().optional(),\n processing_time: z.number().describe(\"Processing time in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Response schema for ReadLicensePlate action.\");\n\nexport const platerecognizerReadLicensePlate = action(\"PLATERECOGNIZER_READ_LICENSE_PLATE\", {\n slug: \"platerecognizer-read-license-plate\",\n name: \"Read License Plate\",\n description: \"Tool to read license plates from images with confidence scores and optional vehicle details. Use when you need to extract license plate text, region information, or analyze vehicle attributes from images.\",\n input: PlaterecognizerReadLicensePlateInput,\n output: PlaterecognizerReadLicensePlateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC3K,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CAC7Q,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,YAAY,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACtC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACxO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1I,YAAY,EAAE,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AAC,SAAS,4CAA4C;AAUtE,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,SAAS,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -7,11 +7,11 @@ const PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = zod.z.object({
7
7
  calls: zod.z.number().int().describe("Number of API calls made in the current billing period").nullable(),
8
8
  month: zod.z.number().int().describe("Current month number (1-12)").nullable(),
9
9
  resets_on: zod.z.string().describe("Date and time when the usage counter resets (ISO 8601 format)").nullable().optional()
10
- }).describe("Usage information for the current billing period.");
10
+ }).passthrough().describe("Usage information for the current billing period.");
11
11
  const PlaterecognizerSnapshotGetStatisticsOutput = zod.z.object({
12
12
  usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),
13
13
  total_calls: zod.z.number().int().describe("Total number of API calls available in the subscription").nullable()
14
- }).describe("Response schema for SnapshotGetStatistics action.");
14
+ }).passthrough().describe("Response schema for SnapshotGetStatistics action.");
15
15
  const platerecognizerSnapshotGetStatistics = require_action.action("PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS", {
16
16
  slug: "platerecognizer-snapshot-get-statistics",
17
17
  name: "Snapshot Get Statistics",
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot-get-statistics.cjs","names":["z","action"],"sources":["../../src/actions/snapshot-get-statistics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerSnapshotGetStatisticsInput = z.object({}).describe(\"Request schema for SnapshotGetStatistics action.\\nCurrently no parameters are required for this endpoint.\");\nconst PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = z.object({\n year: z.number().int().describe(\"Current year of the billing period\").nullable(),\n calls: z.number().int().describe(\"Number of API calls made in the current billing period\").nullable(),\n month: z.number().int().describe(\"Current month number (1-12)\").nullable(),\n resets_on: z.string().describe(\"Date and time when the usage counter resets (ISO 8601 format)\").nullable().optional(),\n}).describe(\"Usage information for the current billing period.\");\nexport const PlaterecognizerSnapshotGetStatisticsOutput = z.object({\n usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),\n total_calls: z.number().int().describe(\"Total number of API calls available in the subscription\").nullable(),\n}).describe(\"Response schema for SnapshotGetStatistics action.\");\n\nexport const platerecognizerSnapshotGetStatistics = action(\"PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS\", {\n slug: \"platerecognizer-snapshot-get-statistics\",\n name: \"Snapshot Get Statistics\",\n description: \"Tool to retrieve usage statistics for the current month's Snapshot API recognition calls. Use after making Snapshot API calls to monitor monthly usage.\",\n input: PlaterecognizerSnapshotGetStatisticsInput,\n output: PlaterecognizerSnapshotGetStatisticsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC1L,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAO,qDAAqD,SAAS;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uCAAuCC,eAAAA,OAAO,2CAA2C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"snapshot-get-statistics.cjs","names":["z","action"],"sources":["../../src/actions/snapshot-get-statistics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerSnapshotGetStatisticsInput = z.object({}).describe(\"Request schema for SnapshotGetStatistics action.\\nCurrently no parameters are required for this endpoint.\");\nconst PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = z.object({\n year: z.number().int().describe(\"Current year of the billing period\").nullable(),\n calls: z.number().int().describe(\"Number of API calls made in the current billing period\").nullable(),\n month: z.number().int().describe(\"Current month number (1-12)\").nullable(),\n resets_on: z.string().describe(\"Date and time when the usage counter resets (ISO 8601 format)\").nullable().optional(),\n}).passthrough().describe(\"Usage information for the current billing period.\");\nexport const PlaterecognizerSnapshotGetStatisticsOutput = z.object({\n usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),\n total_calls: z.number().int().describe(\"Total number of API calls available in the subscription\").nullable(),\n}).passthrough().describe(\"Response schema for SnapshotGetStatistics action.\");\n\nexport const platerecognizerSnapshotGetStatistics = action(\"PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS\", {\n slug: \"platerecognizer-snapshot-get-statistics\",\n name: \"Snapshot Get Statistics\",\n description: \"Tool to retrieve usage statistics for the current month's Snapshot API recognition calls. Use after making Snapshot API calls to monitor monthly usage.\",\n input: PlaterecognizerSnapshotGetStatisticsInput,\n output: PlaterecognizerSnapshotGetStatisticsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC1L,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAO,qDAAqD,SAAS;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uCAAuCC,eAAAA,OAAO,2CAA2C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,9 +8,9 @@ declare const PlaterecognizerSnapshotGetStatisticsOutput: z.ZodObject<{
8
8
  calls: z.ZodNullable<z.ZodNumber>;
9
9
  month: z.ZodNullable<z.ZodNumber>;
10
10
  resets_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- }, z.core.$strip>>;
11
+ }, z.core.$loose>>;
12
12
  total_calls: z.ZodNullable<z.ZodNumber>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const platerecognizerSnapshotGetStatistics: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
15
  //#endregion
16
16
  export { platerecognizerSnapshotGetStatistics };
@@ -8,9 +8,9 @@ declare const PlaterecognizerSnapshotGetStatisticsOutput: z.ZodObject<{
8
8
  calls: z.ZodNullable<z.ZodNumber>;
9
9
  month: z.ZodNullable<z.ZodNumber>;
10
10
  resets_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- }, z.core.$strip>>;
11
+ }, z.core.$loose>>;
12
12
  total_calls: z.ZodNullable<z.ZodNumber>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const platerecognizerSnapshotGetStatistics: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
15
  //#endregion
16
16
  export { platerecognizerSnapshotGetStatistics };
@@ -7,7 +7,7 @@ const PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = z.object({
7
7
  calls: z.number().int().describe("Number of API calls made in the current billing period").nullable(),
8
8
  month: z.number().int().describe("Current month number (1-12)").nullable(),
9
9
  resets_on: z.string().describe("Date and time when the usage counter resets (ISO 8601 format)").nullable().optional()
10
- }).describe("Usage information for the current billing period.");
10
+ }).passthrough().describe("Usage information for the current billing period.");
11
11
  const platerecognizerSnapshotGetStatistics = action("PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS", {
12
12
  slug: "platerecognizer-snapshot-get-statistics",
13
13
  name: "Snapshot Get Statistics",
@@ -16,7 +16,7 @@ const platerecognizerSnapshotGetStatistics = action("PLATERECOGNIZER_SNAPSHOT_GE
16
16
  output: z.object({
17
17
  usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),
18
18
  total_calls: z.number().int().describe("Total number of API calls available in the subscription").nullable()
19
- }).describe("Response schema for SnapshotGetStatistics action.")
19
+ }).passthrough().describe("Response schema for SnapshotGetStatistics action.")
20
20
  });
21
21
  //#endregion
22
22
  export { platerecognizerSnapshotGetStatistics };
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot-get-statistics.mjs","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerSnapshotGetStatisticsInput = z.object({}).describe(\"Request schema for SnapshotGetStatistics action.\\nCurrently no parameters are required for this endpoint.\");\nconst PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = z.object({\n year: z.number().int().describe(\"Current year of the billing period\").nullable(),\n calls: z.number().int().describe(\"Number of API calls made in the current billing period\").nullable(),\n month: z.number().int().describe(\"Current month number (1-12)\").nullable(),\n resets_on: z.string().describe(\"Date and time when the usage counter resets (ISO 8601 format)\").nullable().optional(),\n}).describe(\"Usage information for the current billing period.\");\nexport const PlaterecognizerSnapshotGetStatisticsOutput = z.object({\n usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),\n total_calls: z.number().int().describe(\"Total number of API calls available in the subscription\").nullable(),\n}).describe(\"Response schema for SnapshotGetStatistics action.\");\n\nexport const platerecognizerSnapshotGetStatistics = action(\"PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS\", {\n slug: \"platerecognizer-snapshot-get-statistics\",\n name: \"Snapshot Get Statistics\",\n description: \"Tool to retrieve usage statistics for the current month's Snapshot API recognition calls. Use after making Snapshot API calls to monitor monthly usage.\",\n input: PlaterecognizerSnapshotGetStatisticsInput,\n output: PlaterecognizerSnapshotGetStatisticsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC1L,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACpG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,uCAAuC,OAAO,2CAA2C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,OAAO,qDAAqD,SAAS;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"snapshot-get-statistics.mjs","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlaterecognizerSnapshotGetStatisticsInput = z.object({}).describe(\"Request schema for SnapshotGetStatistics action.\\nCurrently no parameters are required for this endpoint.\");\nconst PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = z.object({\n year: z.number().int().describe(\"Current year of the billing period\").nullable(),\n calls: z.number().int().describe(\"Number of API calls made in the current billing period\").nullable(),\n month: z.number().int().describe(\"Current month number (1-12)\").nullable(),\n resets_on: z.string().describe(\"Date and time when the usage counter resets (ISO 8601 format)\").nullable().optional(),\n}).passthrough().describe(\"Usage information for the current billing period.\");\nexport const PlaterecognizerSnapshotGetStatisticsOutput = z.object({\n usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),\n total_calls: z.number().int().describe(\"Total number of API calls available in the subscription\").nullable(),\n}).passthrough().describe(\"Response schema for SnapshotGetStatistics action.\");\n\nexport const platerecognizerSnapshotGetStatistics = action(\"PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS\", {\n slug: \"platerecognizer-snapshot-get-statistics\",\n name: \"Snapshot Get Statistics\",\n description: \"Tool to retrieve usage statistics for the current month's Snapshot API recognition calls. Use after making Snapshot API calls to monitor monthly usage.\",\n input: PlaterecognizerSnapshotGetStatisticsInput,\n output: PlaterecognizerSnapshotGetStatisticsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC1L,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACpG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,uCAAuC,OAAO,2CAA2C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,OAAO,qDAAqD,SAAS;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/platerecognizer",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"