@keystrokehq/platerecognizer 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["platerecognizer","executePlaterecognizerTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { platerecognizer } from \"./app\";\nimport { executePlaterecognizerTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return platerecognizer.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlaterecognizerTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,gBAAgB,OAAO;EAC5B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,2BAA2B,MAAM,KAAgC,CAAC;EAClG;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["platerecognizer","executePlaterecognizerTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { platerecognizer } from \"./app\";\nimport { executePlaterecognizerTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof platerecognizer.credential> {\n return platerecognizer.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlaterecognizerTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO+D;CAC/D,OAAOA,YAAAA,gBAAgB,OAAO;EAC5B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,2BAA2B,MAAM,KAAgC,CAAC;EAClG;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { platerecognizer } from \"./app\";\nimport { executePlaterecognizerTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return platerecognizer.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePlaterecognizerTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,gBAAgB,OAAO;EAC5B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,2BAA2B,MAAM,KAAgC,CAAC;EAClG;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { platerecognizer } from \"./app\";\nimport { executePlaterecognizerTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof platerecognizer.credential> {\n return platerecognizer.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlaterecognizerTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO+D;CAC/D,OAAO,gBAAgB,OAAO;EAC5B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,2BAA2B,MAAM,KAAgC,CAAC;EAClG;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/read-license-plate.ts
@@ -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.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,mFAAmF;EAC7G,OAA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AAC,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"}
1
+ {"version":3,"file":"read-license-plate.cjs","names":["z","action"],"sources":["../../src/actions/read-license-plate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { platerecognizer } from \"../app\";\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: AppAction<\n typeof PlaterecognizerReadLicensePlateInput,\n typeof PlaterecognizerReadLicensePlateOutput,\n typeof platerecognizer.credential\n> = 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":";;;;AAMA,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,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,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AAAA,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,kCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { platerecognizer } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/read-license-plate.d.ts
@@ -70,33 +72,7 @@ declare const PlaterecognizerReadLicensePlateOutput: z.ZodObject<{
70
72
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
73
  processing_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
74
  }, z.core.$loose>;
73
- declare const platerecognizerReadLicensePlate: import("@keystrokehq/action").WorkflowActionDefinition<{
74
- mmc?: boolean | undefined;
75
- config?: Record<string, unknown> | undefined;
76
- upload?: string | {
77
- [x: string]: unknown;
78
- name: string;
79
- s3key: string;
80
- mimetype: string;
81
- } | undefined;
82
- regions?: string[] | undefined;
83
- camera_id?: string | undefined;
84
- direction?: boolean | undefined;
85
- timestamp?: string | undefined;
86
- upload_url?: string | undefined;
87
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
88
- connectionId: z.ZodString;
89
- entityId: z.ZodString;
90
- instanceId: z.ZodString;
91
- }, z.core.$strip>, z.ZodObject<{
92
- generic_api_key: z.ZodString;
93
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
94
- connectionId: z.ZodString;
95
- entityId: z.ZodString;
96
- instanceId: z.ZodString;
97
- }, z.core.$strip>, z.ZodObject<{
98
- generic_api_key: z.ZodString;
99
- }, z.core.$strip>>]>;
75
+ declare const platerecognizerReadLicensePlate: AppAction<typeof PlaterecognizerReadLicensePlateInput, typeof PlaterecognizerReadLicensePlateOutput, typeof platerecognizer.credential>;
100
76
  //#endregion
101
77
  export { platerecognizerReadLicensePlate };
102
78
  //# sourceMappingURL=read-license-plate.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"read-license-plate.d.cts","names":[],"sources":["../../src/actions/read-license-plate.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAiEpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"read-license-plate.d.cts","names":[],"sources":["../../src/actions/read-license-plate.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAiEpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { platerecognizer } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/read-license-plate.d.ts
@@ -70,33 +72,7 @@ declare const PlaterecognizerReadLicensePlateOutput: z.ZodObject<{
70
72
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
73
  processing_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
74
  }, z.core.$loose>;
73
- declare const platerecognizerReadLicensePlate: import("@keystrokehq/action").WorkflowActionDefinition<{
74
- mmc?: boolean | undefined;
75
- config?: Record<string, unknown> | undefined;
76
- upload?: string | {
77
- [x: string]: unknown;
78
- name: string;
79
- s3key: string;
80
- mimetype: string;
81
- } | undefined;
82
- regions?: string[] | undefined;
83
- camera_id?: string | undefined;
84
- direction?: boolean | undefined;
85
- timestamp?: string | undefined;
86
- upload_url?: string | undefined;
87
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
88
- connectionId: z.ZodString;
89
- entityId: z.ZodString;
90
- instanceId: z.ZodString;
91
- }, z.core.$strip>, z.ZodObject<{
92
- generic_api_key: z.ZodString;
93
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
94
- connectionId: z.ZodString;
95
- entityId: z.ZodString;
96
- instanceId: z.ZodString;
97
- }, z.core.$strip>, z.ZodObject<{
98
- generic_api_key: z.ZodString;
99
- }, z.core.$strip>>]>;
75
+ declare const platerecognizerReadLicensePlate: AppAction<typeof PlaterecognizerReadLicensePlateInput, typeof PlaterecognizerReadLicensePlateOutput, typeof platerecognizer.credential>;
100
76
  //#endregion
101
77
  export { platerecognizerReadLicensePlate };
102
78
  //# sourceMappingURL=read-license-plate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"read-license-plate.d.mts","names":[],"sources":["../../src/actions/read-license-plate.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAiEpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"read-license-plate.d.mts","names":[],"sources":["../../src/actions/read-license-plate.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAiEpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cASrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/read-license-plate.ts
@@ -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.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,OAAO,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;AACrL,C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C1F,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"}
1
+ {"version":3,"file":"read-license-plate.mjs","names":[],"sources":["../../src/actions/read-license-plate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { platerecognizer } from \"../app\";\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: AppAction<\n typeof PlaterecognizerReadLicensePlateInput,\n typeof PlaterecognizerReadLicensePlateOutput,\n typeof platerecognizer.credential\n> = 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":";;;;AAMA,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,C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AAC,SAAS,8CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/snapshot-get-statistics.ts
@@ -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}).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"}
1
+ {"version":3,"file":"snapshot-get-statistics.cjs","names":["z","action"],"sources":["../../src/actions/snapshot-get-statistics.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { platerecognizer } from \"../app\";\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: AppAction<\n typeof PlaterecognizerSnapshotGetStatisticsInput,\n typeof PlaterecognizerSnapshotGetStatisticsOutput,\n typeof platerecognizer.credential\n> = 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":";;;;AAMA,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,uCAITC,eAAAA,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { platerecognizer } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/snapshot-get-statistics.d.ts
@@ -11,19 +13,7 @@ declare const PlaterecognizerSnapshotGetStatisticsOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  total_calls: z.ZodNullable<z.ZodNumber>;
13
15
  }, z.core.$loose>;
14
- declare const platerecognizerSnapshotGetStatistics: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
16
+ declare const platerecognizerSnapshotGetStatistics: AppAction<typeof PlaterecognizerSnapshotGetStatisticsInput, typeof PlaterecognizerSnapshotGetStatisticsOutput, typeof platerecognizer.credential>;
27
17
  //#endregion
28
18
  export { platerecognizerSnapshotGetStatistics };
29
19
  //# sourceMappingURL=snapshot-get-statistics.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot-get-statistics.d.cts","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,oBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"snapshot-get-statistics.d.cts","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;cAK1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { platerecognizer } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/snapshot-get-statistics.d.ts
@@ -11,19 +13,7 @@ declare const PlaterecognizerSnapshotGetStatisticsOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  total_calls: z.ZodNullable<z.ZodNumber>;
13
15
  }, z.core.$loose>;
14
- declare const platerecognizerSnapshotGetStatistics: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
16
+ declare const platerecognizerSnapshotGetStatistics: AppAction<typeof PlaterecognizerSnapshotGetStatisticsInput, typeof PlaterecognizerSnapshotGetStatisticsOutput, typeof platerecognizer.credential>;
27
17
  //#endregion
28
18
  export { platerecognizerSnapshotGetStatistics };
29
19
  //# sourceMappingURL=snapshot-get-statistics.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot-get-statistics.d.mts","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;cAK1C,oCAAA,gCAAoC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,oBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"snapshot-get-statistics.d.mts","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;cAK1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/snapshot-get-statistics.ts
@@ -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}).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"}
1
+ {"version":3,"file":"snapshot-get-statistics.mjs","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { platerecognizer } from \"../app\";\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: AppAction<\n typeof PlaterecognizerSnapshotGetStatisticsInput,\n typeof PlaterecognizerSnapshotGetStatisticsOutput,\n typeof platerecognizer.credential\n> = 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":";;;;AAMA,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,uCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwD,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,mDAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const platerecognizer = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "platerecognizer",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.platerecognizer = platerecognizer;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const platerecognizer = defineApp({\n slug: \"platerecognizer\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,mBAAA,GAAA,2BAAA,UAAA,CAA4B;CACvC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const platerecognizer: KeystrokeApp<\"platerecognizer\", typeof credential> = defineApp({\n slug: \"platerecognizer\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,mBAAA,GAAA,2BAAA,UAAA,CAAgF;CAC3F,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const platerecognizer: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const platerecognizer: KeystrokeApp<"platerecognizer", typeof credential>;
11
9
  //#endregion
12
10
  export { platerecognizer };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,eAAA,6BAAe,GAAA,+BAAA,UAAA,oBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,eAAA,EAAiB,YAAY,2BAA2B,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const platerecognizer: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"platerecognizer", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const platerecognizer: KeystrokeApp<"platerecognizer", typeof credential>;
11
9
  //#endregion
12
10
  export { platerecognizer };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,eAAA,6BAAe,GAAA,+BAAA,UAAA,oBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,eAAA,EAAiB,YAAY,2BAA2B,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const platerecognizer = defineApp({
5
4
  slug: "platerecognizer",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const platerecognizer = defineApp({\n slug: \"platerecognizer\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,kBAAkB,UAAU;CACvC,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const platerecognizer: KeystrokeApp<\"platerecognizer\", typeof credential> = defineApp({\n slug: \"platerecognizer\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,kBAAsE,UAAU;CAC3F,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
+ import { platerecognizer } from "./app.cjs";
1
2
  import { platerecognizerReadLicensePlate } from "./actions/read-license-plate.cjs";
2
3
  import { platerecognizerSnapshotGetStatistics } from "./actions/snapshot-get-statistics.cjs";
3
- import { platerecognizer } from "./app.cjs";
4
4
  import { platerecognizerCatalog } from "./catalog.cjs";
5
5
  export { platerecognizer, platerecognizerCatalog, platerecognizerReadLicensePlate, platerecognizerSnapshotGetStatistics };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
+ import { platerecognizer } from "./app.mjs";
1
2
  import { platerecognizerReadLicensePlate } from "./actions/read-license-plate.mjs";
2
3
  import { platerecognizerSnapshotGetStatistics } from "./actions/snapshot-get-statistics.mjs";
3
- import { platerecognizer } from "./app.mjs";
4
4
  import { platerecognizerCatalog } from "./catalog.mjs";
5
5
  export { platerecognizer, platerecognizerCatalog, platerecognizerReadLicensePlate, platerecognizerSnapshotGetStatistics };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/platerecognizer",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {