@keystrokehq/platerecognizer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/index.cjs +5 -0
- package/dist/actions/index.d.cts +3 -0
- package/dist/actions/index.d.mts +3 -0
- package/dist/actions/index.mjs +3 -0
- package/dist/actions/read-license-plate.cjs +87 -0
- package/dist/actions/read-license-plate.cjs.map +1 -0
- package/dist/actions/read-license-plate.d.cts +9 -0
- package/dist/actions/read-license-plate.d.cts.map +1 -0
- package/dist/actions/read-license-plate.d.mts +9 -0
- package/dist/actions/read-license-plate.d.mts.map +1 -0
- package/dist/actions/read-license-plate.mjs +86 -0
- package/dist/actions/read-license-plate.mjs.map +1 -0
- package/dist/actions/snapshot-get-statistics.cjs +25 -0
- package/dist/actions/snapshot-get-statistics.cjs.map +1 -0
- package/dist/actions/snapshot-get-statistics.d.cts +9 -0
- package/dist/actions/snapshot-get-statistics.d.cts.map +1 -0
- package/dist/actions/snapshot-get-statistics.d.mts +9 -0
- package/dist/actions/snapshot-get-statistics.d.mts.map +1 -0
- package/dist/actions/snapshot-get-statistics.mjs +24 -0
- package/dist/actions/snapshot-get-statistics.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +6 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/platerecognizer
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `platerecognizer`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 2
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { platerecognizerReadLicensePlate } from "@keystrokehq/platerecognizer/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "platerecognizer-agent",
|
|
15
|
+
tools: [platerecognizerReadLicensePlate],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.platerecognizer.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executePlaterecognizerTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { platerecognizer } from "./app.mjs";
|
|
2
|
+
import { executePlaterecognizerTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return platerecognizer.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executePlaterecognizerTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_read_license_plate = require("./read-license-plate.cjs");
|
|
3
|
+
const require_snapshot_get_statistics = require("./snapshot-get-statistics.cjs");
|
|
4
|
+
exports.platerecognizerReadLicensePlate = require_read_license_plate.platerecognizerReadLicensePlate;
|
|
5
|
+
exports.platerecognizerSnapshotGetStatistics = require_snapshot_get_statistics.platerecognizerSnapshotGetStatistics;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/read-license-plate.ts
|
|
4
|
+
const PlaterecognizerReadLicensePlateInput = zod.z.object({
|
|
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(),
|
|
7
|
+
upload: zod.z.union([zod.z.object({
|
|
8
|
+
name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
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
|
+
mimetype: zod.z.string().describe("The MIME type of the file")
|
|
11
|
+
}), zod.z.string()]).optional(),
|
|
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
|
+
camera_id: zod.z.string().describe("Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.").optional(),
|
|
14
|
+
direction: zod.z.boolean().describe("Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.").optional(),
|
|
15
|
+
timestamp: zod.z.string().describe("ISO 8601 timestamp in UTC indicating when the image was captured. Example: 2019-08-19T13:11:25").optional(),
|
|
16
|
+
upload_url: zod.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()
|
|
17
|
+
}).describe("Request schema for ReadLicensePlate action.");
|
|
18
|
+
const PlaterecognizerReadLicensePlate_BoxSchema = zod.z.object({
|
|
19
|
+
xmax: zod.z.number().int().describe("Maximum x coordinate").nullable().optional(),
|
|
20
|
+
xmin: zod.z.number().int().describe("Minimum x coordinate").nullable().optional(),
|
|
21
|
+
ymax: zod.z.number().int().describe("Maximum y coordinate").nullable().optional(),
|
|
22
|
+
ymin: zod.z.number().int().describe("Minimum y coordinate").nullable().optional()
|
|
23
|
+
}).describe("Bounding box coordinates.");
|
|
24
|
+
const PlaterecognizerReadLicensePlate_YearRangeSchema = zod.z.object({
|
|
25
|
+
max: zod.z.number().int().describe("Maximum year estimate").nullable().optional(),
|
|
26
|
+
min: zod.z.number().int().describe("Minimum year estimate").nullable().optional()
|
|
27
|
+
}).describe("Vehicle year range estimate.");
|
|
28
|
+
const PlaterecognizerReadLicensePlate_ColorPredictionSchema = zod.z.object({
|
|
29
|
+
color: zod.z.string().describe("Predicted color name").nullable().optional(),
|
|
30
|
+
score: zod.z.number().describe("Confidence score (0-1)").nullable().optional()
|
|
31
|
+
}).describe("Vehicle color prediction.");
|
|
32
|
+
const PlaterecognizerReadLicensePlate_RegionSchema = zod.z.object({
|
|
33
|
+
code: zod.z.string().describe("Region/country code (e.g., 'us-ca', 'gb')").nullable().optional(),
|
|
34
|
+
score: zod.z.number().describe("Confidence score for region detection (0-1)").nullable().optional()
|
|
35
|
+
}).describe("License plate region information.");
|
|
36
|
+
const PlaterecognizerReadLicensePlate_VehicleSchema = zod.z.object({
|
|
37
|
+
box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
|
|
38
|
+
type: zod.z.string().describe("Vehicle type (e.g., 'Car')").nullable().optional(),
|
|
39
|
+
score: zod.z.number().describe("Confidence score for vehicle detection (0-1)").nullable().optional()
|
|
40
|
+
}).describe("Vehicle detection information.");
|
|
41
|
+
const PlaterecognizerReadLicensePlate_CandidateSchema = zod.z.object({
|
|
42
|
+
plate: zod.z.string().describe("Alternative plate text").nullable().optional(),
|
|
43
|
+
score: zod.z.number().describe("Confidence score for this candidate (0-1)").nullable().optional()
|
|
44
|
+
}).describe("Alternative plate prediction.");
|
|
45
|
+
const PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = zod.z.object({
|
|
46
|
+
make: zod.z.string().describe("Vehicle make").nullable().optional(),
|
|
47
|
+
model: zod.z.string().describe("Vehicle model").nullable().optional(),
|
|
48
|
+
score: zod.z.number().describe("Confidence score (0-1)").nullable().optional()
|
|
49
|
+
}).describe("Vehicle make and model prediction.");
|
|
50
|
+
const PlaterecognizerReadLicensePlate_OrientationPredictionSchema = zod.z.object({
|
|
51
|
+
score: zod.z.number().describe("Confidence score (0-1)").nullable().optional(),
|
|
52
|
+
orientation: zod.z.string().describe("Vehicle orientation").nullable().optional()
|
|
53
|
+
}).describe("Vehicle orientation prediction.");
|
|
54
|
+
const PlaterecognizerReadLicensePlate_PlateResultSchema = zod.z.object({
|
|
55
|
+
box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
|
|
56
|
+
year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),
|
|
57
|
+
color: zod.z.array(PlaterecognizerReadLicensePlate_ColorPredictionSchema).describe("Vehicle color predictions (requires mmc=true)").nullable().optional(),
|
|
58
|
+
plate: zod.z.string().describe("Detected license plate text").nullable().optional(),
|
|
59
|
+
score: zod.z.number().describe("Confidence level for plate text recognition (0-1)").nullable().optional(),
|
|
60
|
+
dscore: zod.z.number().describe("Confidence level for plate detection (0-1)").nullable().optional(),
|
|
61
|
+
region: PlaterecognizerReadLicensePlate_RegionSchema.nullable().optional(),
|
|
62
|
+
vehicle: PlaterecognizerReadLicensePlate_VehicleSchema.nullable().optional(),
|
|
63
|
+
direction: zod.z.number().describe("Direction of travel in degrees (requires direction=true)").nullable().optional(),
|
|
64
|
+
candidates: zod.z.array(PlaterecognizerReadLicensePlate_CandidateSchema).describe("Alternative plate text predictions").nullable().optional(),
|
|
65
|
+
model_make: zod.z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe("Vehicle make and model predictions (requires mmc=true)").nullable().optional(),
|
|
66
|
+
orientation: zod.z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe("Vehicle orientation predictions (requires mmc=true)").nullable().optional(),
|
|
67
|
+
direction_score: zod.z.number().describe("Confidence score for direction prediction (0-1)").nullable().optional()
|
|
68
|
+
}).describe("Individual license plate detection result.");
|
|
69
|
+
const PlaterecognizerReadLicensePlateOutput = zod.z.object({
|
|
70
|
+
results: zod.z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe("List of detected license plates and their details").nullable().optional(),
|
|
71
|
+
version: zod.z.number().int().describe("API version used").nullable().optional(),
|
|
72
|
+
filename: zod.z.string().describe("Name of the processed file or URL").nullable().optional(),
|
|
73
|
+
camera_id: zod.z.string().describe("Camera identifier if provided in request").nullable().optional(),
|
|
74
|
+
timestamp: zod.z.string().describe("Timestamp if provided in request").nullable().optional(),
|
|
75
|
+
processing_time: zod.z.number().describe("Processing time in milliseconds").nullable().optional()
|
|
76
|
+
}).describe("Response schema for ReadLicensePlate action.");
|
|
77
|
+
const platerecognizerReadLicensePlate = require_action.action("PLATERECOGNIZER_READ_LICENSE_PLATE", {
|
|
78
|
+
slug: "platerecognizer-read-license-plate",
|
|
79
|
+
name: "Read License Plate",
|
|
80
|
+
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.",
|
|
81
|
+
input: PlaterecognizerReadLicensePlateInput,
|
|
82
|
+
output: PlaterecognizerReadLicensePlateOutput
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
exports.platerecognizerReadLicensePlate = platerecognizerReadLicensePlate;
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=read-license-plate.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,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,I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A0C,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/read-license-plate.d.ts
|
|
4
|
+
declare const PlaterecognizerReadLicensePlateInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlaterecognizerReadLicensePlateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const platerecognizerReadLicensePlate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { platerecognizerReadLicensePlate };
|
|
9
|
+
//# sourceMappingURL=read-license-plate.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-license-plate.d.cts","names":[],"sources":["../../src/actions/read-license-plate.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAaK;AAAA,cAoD7C,qCAAA,EAAuC,CAAA,CAAE,UAOK;AAAA,cAE9C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/read-license-plate.d.ts
|
|
4
|
+
declare const PlaterecognizerReadLicensePlateInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlaterecognizerReadLicensePlateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const platerecognizerReadLicensePlate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { platerecognizerReadLicensePlate };
|
|
9
|
+
//# sourceMappingURL=read-license-plate.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-license-plate.d.mts","names":[],"sources":["../../src/actions/read-license-plate.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAaK;AAAA,cAoD7C,qCAAA,EAAuC,CAAA,CAAE,UAOK;AAAA,cAE9C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/read-license-plate.ts
|
|
4
|
+
const PlaterecognizerReadLicensePlateInput = z.object({
|
|
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(),
|
|
7
|
+
upload: z.union([z.object({
|
|
8
|
+
name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
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
|
+
mimetype: z.string().describe("The MIME type of the file")
|
|
11
|
+
}), z.string()]).optional(),
|
|
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
|
+
camera_id: z.string().describe("Unique camera identifier for tracking purposes. Useful for identifying which camera captured the image.").optional(),
|
|
14
|
+
direction: z.boolean().describe("Predict vehicle direction of travel in degrees. Requires mmc=true. Default is false.").optional(),
|
|
15
|
+
timestamp: z.string().describe("ISO 8601 timestamp in UTC indicating when the image was captured. Example: 2019-08-19T13:11:25").optional(),
|
|
16
|
+
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()
|
|
17
|
+
}).describe("Request schema for ReadLicensePlate action.");
|
|
18
|
+
const PlaterecognizerReadLicensePlate_BoxSchema = z.object({
|
|
19
|
+
xmax: z.number().int().describe("Maximum x coordinate").nullable().optional(),
|
|
20
|
+
xmin: z.number().int().describe("Minimum x coordinate").nullable().optional(),
|
|
21
|
+
ymax: z.number().int().describe("Maximum y coordinate").nullable().optional(),
|
|
22
|
+
ymin: z.number().int().describe("Minimum y coordinate").nullable().optional()
|
|
23
|
+
}).describe("Bounding box coordinates.");
|
|
24
|
+
const PlaterecognizerReadLicensePlate_YearRangeSchema = z.object({
|
|
25
|
+
max: z.number().int().describe("Maximum year estimate").nullable().optional(),
|
|
26
|
+
min: z.number().int().describe("Minimum year estimate").nullable().optional()
|
|
27
|
+
}).describe("Vehicle year range estimate.");
|
|
28
|
+
const PlaterecognizerReadLicensePlate_ColorPredictionSchema = z.object({
|
|
29
|
+
color: z.string().describe("Predicted color name").nullable().optional(),
|
|
30
|
+
score: z.number().describe("Confidence score (0-1)").nullable().optional()
|
|
31
|
+
}).describe("Vehicle color prediction.");
|
|
32
|
+
const PlaterecognizerReadLicensePlate_RegionSchema = z.object({
|
|
33
|
+
code: z.string().describe("Region/country code (e.g., 'us-ca', 'gb')").nullable().optional(),
|
|
34
|
+
score: z.number().describe("Confidence score for region detection (0-1)").nullable().optional()
|
|
35
|
+
}).describe("License plate region information.");
|
|
36
|
+
const PlaterecognizerReadLicensePlate_VehicleSchema = z.object({
|
|
37
|
+
box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
|
|
38
|
+
type: z.string().describe("Vehicle type (e.g., 'Car')").nullable().optional(),
|
|
39
|
+
score: z.number().describe("Confidence score for vehicle detection (0-1)").nullable().optional()
|
|
40
|
+
}).describe("Vehicle detection information.");
|
|
41
|
+
const PlaterecognizerReadLicensePlate_CandidateSchema = z.object({
|
|
42
|
+
plate: z.string().describe("Alternative plate text").nullable().optional(),
|
|
43
|
+
score: z.number().describe("Confidence score for this candidate (0-1)").nullable().optional()
|
|
44
|
+
}).describe("Alternative plate prediction.");
|
|
45
|
+
const PlaterecognizerReadLicensePlate_ModelMakePredictionSchema = z.object({
|
|
46
|
+
make: z.string().describe("Vehicle make").nullable().optional(),
|
|
47
|
+
model: z.string().describe("Vehicle model").nullable().optional(),
|
|
48
|
+
score: z.number().describe("Confidence score (0-1)").nullable().optional()
|
|
49
|
+
}).describe("Vehicle make and model prediction.");
|
|
50
|
+
const PlaterecognizerReadLicensePlate_OrientationPredictionSchema = z.object({
|
|
51
|
+
score: z.number().describe("Confidence score (0-1)").nullable().optional(),
|
|
52
|
+
orientation: z.string().describe("Vehicle orientation").nullable().optional()
|
|
53
|
+
}).describe("Vehicle orientation prediction.");
|
|
54
|
+
const PlaterecognizerReadLicensePlate_PlateResultSchema = z.object({
|
|
55
|
+
box: PlaterecognizerReadLicensePlate_BoxSchema.nullable().optional(),
|
|
56
|
+
year: PlaterecognizerReadLicensePlate_YearRangeSchema.nullable().optional(),
|
|
57
|
+
color: z.array(PlaterecognizerReadLicensePlate_ColorPredictionSchema).describe("Vehicle color predictions (requires mmc=true)").nullable().optional(),
|
|
58
|
+
plate: z.string().describe("Detected license plate text").nullable().optional(),
|
|
59
|
+
score: z.number().describe("Confidence level for plate text recognition (0-1)").nullable().optional(),
|
|
60
|
+
dscore: z.number().describe("Confidence level for plate detection (0-1)").nullable().optional(),
|
|
61
|
+
region: PlaterecognizerReadLicensePlate_RegionSchema.nullable().optional(),
|
|
62
|
+
vehicle: PlaterecognizerReadLicensePlate_VehicleSchema.nullable().optional(),
|
|
63
|
+
direction: z.number().describe("Direction of travel in degrees (requires direction=true)").nullable().optional(),
|
|
64
|
+
candidates: z.array(PlaterecognizerReadLicensePlate_CandidateSchema).describe("Alternative plate text predictions").nullable().optional(),
|
|
65
|
+
model_make: z.array(PlaterecognizerReadLicensePlate_ModelMakePredictionSchema).describe("Vehicle make and model predictions (requires mmc=true)").nullable().optional(),
|
|
66
|
+
orientation: z.array(PlaterecognizerReadLicensePlate_OrientationPredictionSchema).describe("Vehicle orientation predictions (requires mmc=true)").nullable().optional(),
|
|
67
|
+
direction_score: z.number().describe("Confidence score for direction prediction (0-1)").nullable().optional()
|
|
68
|
+
}).describe("Individual license plate detection result.");
|
|
69
|
+
const platerecognizerReadLicensePlate = action("PLATERECOGNIZER_READ_LICENSE_PLATE", {
|
|
70
|
+
slug: "platerecognizer-read-license-plate",
|
|
71
|
+
name: "Read License Plate",
|
|
72
|
+
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.",
|
|
73
|
+
input: PlaterecognizerReadLicensePlateInput,
|
|
74
|
+
output: z.object({
|
|
75
|
+
results: z.array(PlaterecognizerReadLicensePlate_PlateResultSchema).describe("List of detected license plates and their details").nullable().optional(),
|
|
76
|
+
version: z.number().int().describe("API version used").nullable().optional(),
|
|
77
|
+
filename: z.string().describe("Name of the processed file or URL").nullable().optional(),
|
|
78
|
+
camera_id: z.string().describe("Camera identifier if provided in request").nullable().optional(),
|
|
79
|
+
timestamp: z.string().describe("Timestamp if provided in request").nullable().optional(),
|
|
80
|
+
processing_time: z.number().describe("Processing time in milliseconds").nullable().optional()
|
|
81
|
+
}).describe("Response schema for ReadLicensePlate action.")
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { platerecognizerReadLicensePlate };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=read-license-plate.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,uCAAqD,EAAE,OAAO;CACzE,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,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,C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C,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,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/snapshot-get-statistics.ts
|
|
4
|
+
const PlaterecognizerSnapshotGetStatisticsInput = zod.z.object({}).describe("Request schema for SnapshotGetStatistics action.\nCurrently no parameters are required for this endpoint.");
|
|
5
|
+
const PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = zod.z.object({
|
|
6
|
+
year: zod.z.number().int().describe("Current year of the billing period"),
|
|
7
|
+
calls: zod.z.number().int().describe("Number of API calls made in the current billing period"),
|
|
8
|
+
month: zod.z.number().int().describe("Current month number (1-12)"),
|
|
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.");
|
|
11
|
+
const PlaterecognizerSnapshotGetStatisticsOutput = zod.z.object({
|
|
12
|
+
usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),
|
|
13
|
+
total_calls: zod.z.number().int().describe("Total number of API calls available in the subscription")
|
|
14
|
+
}).describe("Response schema for SnapshotGetStatistics action.");
|
|
15
|
+
const platerecognizerSnapshotGetStatistics = require_action.action("PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS", {
|
|
16
|
+
slug: "platerecognizer-snapshot-get-statistics",
|
|
17
|
+
name: "Snapshot Get Statistics",
|
|
18
|
+
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.",
|
|
19
|
+
input: PlaterecognizerSnapshotGetStatisticsInput,
|
|
20
|
+
output: PlaterecognizerSnapshotGetStatisticsOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.platerecognizerSnapshotGetStatistics = platerecognizerSnapshotGetStatistics;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=snapshot-get-statistics.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request schema for SnapshotGetStatistics action.\\nCurrently no parameters are required for this endpoint.\");\nconst PlaterecognizerSnapshotGetStatistics_UsageInfoSchema: z.ZodTypeAny = z.object({\n year: z.number().int().describe(\"Current year of the billing period\"),\n calls: z.number().int().describe(\"Number of API calls made in the current billing period\"),\n month: z.number().int().describe(\"Current month number (1-12)\"),\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.ZodTypeAny = z.object({\n usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),\n total_calls: z.number().int().describe(\"Total number of API calls available in the subscription\"),\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,4CAA0DA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AACxM,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,OAAO,qDAAqD,SAAS;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;AAClG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uCAAuCC,eAAAA,OAAO,2CAA2C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/snapshot-get-statistics.d.ts
|
|
4
|
+
declare const PlaterecognizerSnapshotGetStatisticsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlaterecognizerSnapshotGetStatisticsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const platerecognizerSnapshotGetStatistics: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { platerecognizerSnapshotGetStatistics };
|
|
9
|
+
//# sourceMappingURL=snapshot-get-statistics.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot-get-statistics.d.cts","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAA+I;AAAA,cAO5L,0CAAA,EAA4C,CAAA,CAAE,UAGK;AAAA,cAEnD,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/snapshot-get-statistics.d.ts
|
|
4
|
+
declare const PlaterecognizerSnapshotGetStatisticsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlaterecognizerSnapshotGetStatisticsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const platerecognizerSnapshotGetStatistics: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { platerecognizerSnapshotGetStatistics };
|
|
9
|
+
//# sourceMappingURL=snapshot-get-statistics.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot-get-statistics.d.mts","names":[],"sources":["../../src/actions/snapshot-get-statistics.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAA+I;AAAA,cAO5L,0CAAA,EAA4C,CAAA,CAAE,UAGK;AAAA,cAEnD,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/snapshot-get-statistics.ts
|
|
4
|
+
const PlaterecognizerSnapshotGetStatisticsInput = z.object({}).describe("Request schema for SnapshotGetStatistics action.\nCurrently no parameters are required for this endpoint.");
|
|
5
|
+
const PlaterecognizerSnapshotGetStatistics_UsageInfoSchema = z.object({
|
|
6
|
+
year: z.number().int().describe("Current year of the billing period"),
|
|
7
|
+
calls: z.number().int().describe("Number of API calls made in the current billing period"),
|
|
8
|
+
month: z.number().int().describe("Current month number (1-12)"),
|
|
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.");
|
|
11
|
+
const platerecognizerSnapshotGetStatistics = action("PLATERECOGNIZER_SNAPSHOT_GET_STATISTICS", {
|
|
12
|
+
slug: "platerecognizer-snapshot-get-statistics",
|
|
13
|
+
name: "Snapshot Get Statistics",
|
|
14
|
+
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.",
|
|
15
|
+
input: PlaterecognizerSnapshotGetStatisticsInput,
|
|
16
|
+
output: z.object({
|
|
17
|
+
usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),
|
|
18
|
+
total_calls: z.number().int().describe("Total number of API calls available in the subscription")
|
|
19
|
+
}).describe("Response schema for SnapshotGetStatistics action.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { platerecognizerSnapshotGetStatistics };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=snapshot-get-statistics.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request schema for SnapshotGetStatistics action.\\nCurrently no parameters are required for this endpoint.\");\nconst PlaterecognizerSnapshotGetStatistics_UsageInfoSchema: z.ZodTypeAny = z.object({\n year: z.number().int().describe(\"Current year of the billing period\"),\n calls: z.number().int().describe(\"Number of API calls made in the current billing period\"),\n month: z.number().int().describe(\"Current month number (1-12)\"),\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.ZodTypeAny = z.object({\n usage: PlaterecognizerSnapshotGetStatistics_UsageInfoSchema.nullable(),\n total_calls: z.number().int().describe(\"Total number of API calls available in the subscription\"),\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,4CAA0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AACxM,MAAM,uDAAqE,EAAE,OAAO;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;CACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC9D,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,QAVsE,EAAE,OAAO;EAC/E,OAAO,qDAAqD,SAAS;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CAClG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const platerecognizer = defineApp({\n slug: \"platerecognizer\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,mBAAA,uCAAA,CAAA,CAAA,UAAA,CAA4B;CACvC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,eAAA,6BAAe,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,eAAA,6BAAe,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const platerecognizer = defineApp({\n slug: \"platerecognizer\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,kBAAkB,UAAU;CACvC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const platerecognizerCatalog = {
|
|
4
|
+
"slug": "platerecognizer",
|
|
5
|
+
"name": "Plate Recognizer",
|
|
6
|
+
"description": "Plate Recognizer offers Automatic License Plate Recognition (ALPR) solutions for processing images and videos to detect and decode vehicle license plates.",
|
|
7
|
+
"category": "Artificial Intelligence",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/platerecognizer",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.platerecognizerCatalog = platerecognizerCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const platerecognizerCatalog = {\n \"slug\": \"platerecognizer\",\n \"name\": \"Plate Recognizer\",\n \"description\": \"Plate Recognizer offers Automatic License Plate Recognition (ALPR) solutions for processing images and videos to detect and decode vehicle license plates.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/platerecognizer\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,yBAAyB;CACpC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const platerecognizerCatalog: {
|
|
4
|
+
readonly slug: "platerecognizer";
|
|
5
|
+
readonly name: "Plate Recognizer";
|
|
6
|
+
readonly description: "Plate Recognizer offers Automatic License Plate Recognition (ALPR) solutions for processing images and videos to detect and decode vehicle license plates.";
|
|
7
|
+
readonly category: "Artificial Intelligence";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/platerecognizer";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { platerecognizerCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,sBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const platerecognizerCatalog: {
|
|
4
|
+
readonly slug: "platerecognizer";
|
|
5
|
+
readonly name: "Plate Recognizer";
|
|
6
|
+
readonly description: "Plate Recognizer offers Automatic License Plate Recognition (ALPR) solutions for processing images and videos to detect and decode vehicle license plates.";
|
|
7
|
+
readonly category: "Artificial Intelligence";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/platerecognizer";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { platerecognizerCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,sBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const platerecognizerCatalog = {
|
|
4
|
+
"slug": "platerecognizer",
|
|
5
|
+
"name": "Plate Recognizer",
|
|
6
|
+
"description": "Plate Recognizer offers Automatic License Plate Recognition (ALPR) solutions for processing images and videos to detect and decode vehicle license plates.",
|
|
7
|
+
"category": "Artificial Intelligence",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/platerecognizer",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { platerecognizerCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const platerecognizerCatalog = {\n \"slug\": \"platerecognizer\",\n \"name\": \"Plate Recognizer\",\n \"description\": \"Plate Recognizer offers Automatic License Plate Recognition (ALPR) solutions for processing images and videos to detect and decode vehicle license plates.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/platerecognizer\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,yBAAyB;CACpC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "platerecognizer";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePlaterecognizerTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executePlaterecognizerTool = executePlaterecognizerTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"platerecognizer\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePlaterecognizerTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,2BACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "platerecognizer";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePlaterecognizerTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executePlaterecognizerTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"platerecognizer\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePlaterecognizerTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,2BACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_read_license_plate = require("./actions/read-license-plate.cjs");
|
|
5
|
+
const require_snapshot_get_statistics = require("./actions/snapshot-get-statistics.cjs");
|
|
6
|
+
require("./actions/index.cjs");
|
|
7
|
+
exports.platerecognizer = require_app.platerecognizer;
|
|
8
|
+
exports.platerecognizerCatalog = require_catalog.platerecognizerCatalog;
|
|
9
|
+
exports.platerecognizerReadLicensePlate = require_read_license_plate.platerecognizerReadLicensePlate;
|
|
10
|
+
exports.platerecognizerSnapshotGetStatistics = require_snapshot_get_statistics.platerecognizerSnapshotGetStatistics;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { platerecognizerReadLicensePlate } from "./actions/read-license-plate.cjs";
|
|
2
|
+
import { platerecognizerSnapshotGetStatistics } from "./actions/snapshot-get-statistics.cjs";
|
|
3
|
+
import { platerecognizer } from "./app.cjs";
|
|
4
|
+
import { platerecognizerCatalog } from "./catalog.cjs";
|
|
5
|
+
export { platerecognizer, platerecognizerCatalog, platerecognizerReadLicensePlate, platerecognizerSnapshotGetStatistics };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { platerecognizerReadLicensePlate } from "./actions/read-license-plate.mjs";
|
|
2
|
+
import { platerecognizerSnapshotGetStatistics } from "./actions/snapshot-get-statistics.mjs";
|
|
3
|
+
import { platerecognizer } from "./app.mjs";
|
|
4
|
+
import { platerecognizerCatalog } from "./catalog.mjs";
|
|
5
|
+
export { platerecognizer, platerecognizerCatalog, platerecognizerReadLicensePlate, platerecognizerSnapshotGetStatistics };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { platerecognizer } from "./app.mjs";
|
|
2
|
+
import { platerecognizerCatalog } from "./catalog.mjs";
|
|
3
|
+
import { platerecognizerReadLicensePlate } from "./actions/read-license-plate.mjs";
|
|
4
|
+
import { platerecognizerSnapshotGetStatistics } from "./actions/snapshot-get-statistics.mjs";
|
|
5
|
+
import "./actions/index.mjs";
|
|
6
|
+
export { platerecognizer, platerecognizerCatalog, platerecognizerReadLicensePlate, platerecognizerSnapshotGetStatistics };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/platerecognizer",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/platerecognizer"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|