@keystrokehq/nano_nets 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/create-model.cjs +29 -0
- package/dist/actions/create-model.cjs.map +1 -0
- package/dist/actions/create-model.d.cts +9 -0
- package/dist/actions/create-model.d.cts.map +1 -0
- package/dist/actions/create-model.d.mts +9 -0
- package/dist/actions/create-model.d.mts.map +1 -0
- package/dist/actions/create-model.mjs +28 -0
- package/dist/actions/create-model.mjs.map +1 -0
- package/dist/actions/delete-model.cjs +19 -0
- package/dist/actions/delete-model.cjs.map +1 -0
- package/dist/actions/delete-model.d.cts +9 -0
- package/dist/actions/delete-model.d.cts.map +1 -0
- package/dist/actions/delete-model.d.mts +9 -0
- package/dist/actions/delete-model.d.mts.map +1 -0
- package/dist/actions/delete-model.mjs +16 -0
- package/dist/actions/delete-model.mjs.map +1 -0
- package/dist/actions/get-all-models.cjs +35 -0
- package/dist/actions/get-all-models.cjs.map +1 -0
- package/dist/actions/get-all-models.d.cts +9 -0
- package/dist/actions/get-all-models.d.cts.map +1 -0
- package/dist/actions/get-all-models.d.mts +9 -0
- package/dist/actions/get-all-models.d.mts.map +1 -0
- package/dist/actions/get-all-models.mjs +34 -0
- package/dist/actions/get-all-models.mjs.map +1 -0
- package/dist/actions/get-all-prediction-files.cjs +46 -0
- package/dist/actions/get-all-prediction-files.cjs.map +1 -0
- package/dist/actions/get-all-prediction-files.d.cts +9 -0
- package/dist/actions/get-all-prediction-files.d.cts.map +1 -0
- package/dist/actions/get-all-prediction-files.d.mts +9 -0
- package/dist/actions/get-all-prediction-files.d.mts.map +1 -0
- package/dist/actions/get-all-prediction-files.mjs +45 -0
- package/dist/actions/get-all-prediction-files.mjs.map +1 -0
- package/dist/actions/get-model-details.cjs +34 -0
- package/dist/actions/get-model-details.cjs.map +1 -0
- package/dist/actions/get-model-details.d.cts +9 -0
- package/dist/actions/get-model-details.d.cts.map +1 -0
- package/dist/actions/get-model-details.d.mts +9 -0
- package/dist/actions/get-model-details.d.mts.map +1 -0
- package/dist/actions/get-model-details.mjs +33 -0
- package/dist/actions/get-model-details.mjs.map +1 -0
- package/dist/actions/get-training-images.cjs +40 -0
- package/dist/actions/get-training-images.cjs.map +1 -0
- package/dist/actions/get-training-images.d.cts +9 -0
- package/dist/actions/get-training-images.d.cts.map +1 -0
- package/dist/actions/get-training-images.d.mts +9 -0
- package/dist/actions/get-training-images.d.mts.map +1 -0
- package/dist/actions/get-training-images.mjs +39 -0
- package/dist/actions/get-training-images.mjs.map +1 -0
- package/dist/actions/get-workflows.cjs +29 -0
- package/dist/actions/get-workflows.cjs.map +1 -0
- package/dist/actions/get-workflows.d.cts +9 -0
- package/dist/actions/get-workflows.d.cts.map +1 -0
- package/dist/actions/get-workflows.d.mts +9 -0
- package/dist/actions/get-workflows.d.mts.map +1 -0
- package/dist/actions/get-workflows.mjs +28 -0
- package/dist/actions/get-workflows.mjs.map +1 -0
- package/dist/actions/index.cjs +23 -0
- package/dist/actions/index.d.cts +12 -0
- package/dist/actions/index.d.mts +12 -0
- package/dist/actions/index.mjs +12 -0
- package/dist/actions/list-documents.cjs +47 -0
- package/dist/actions/list-documents.cjs.map +1 -0
- package/dist/actions/list-documents.d.cts +9 -0
- package/dist/actions/list-documents.d.cts.map +1 -0
- package/dist/actions/list-documents.d.mts +9 -0
- package/dist/actions/list-documents.d.mts.map +1 -0
- package/dist/actions/list-documents.mjs +46 -0
- package/dist/actions/list-documents.mjs.map +1 -0
- package/dist/actions/update-model.cjs +23 -0
- package/dist/actions/update-model.cjs.map +1 -0
- package/dist/actions/update-model.d.cts +9 -0
- package/dist/actions/update-model.d.cts.map +1 -0
- package/dist/actions/update-model.d.mts +9 -0
- package/dist/actions/update-model.d.mts.map +1 -0
- package/dist/actions/update-model.mjs +20 -0
- package/dist/actions/update-model.mjs.map +1 -0
- package/dist/actions/upload-training-images-by-file.cjs +33 -0
- package/dist/actions/upload-training-images-by-file.cjs.map +1 -0
- package/dist/actions/upload-training-images-by-file.d.cts +9 -0
- package/dist/actions/upload-training-images-by-file.d.cts.map +1 -0
- package/dist/actions/upload-training-images-by-file.d.mts +9 -0
- package/dist/actions/upload-training-images-by-file.d.mts.map +1 -0
- package/dist/actions/upload-training-images-by-file.mjs +32 -0
- package/dist/actions/upload-training-images-by-file.mjs.map +1 -0
- package/dist/actions/upload-training-images-by-url.cjs +32 -0
- package/dist/actions/upload-training-images-by-url.cjs.map +1 -0
- package/dist/actions/upload-training-images-by-url.d.cts +9 -0
- package/dist/actions/upload-training-images-by-url.d.cts.map +1 -0
- package/dist/actions/upload-training-images-by-url.d.mts +9 -0
- package/dist/actions/upload-training-images-by-url.d.mts.map +1 -0
- package/dist/actions/upload-training-images-by-url.mjs +31 -0
- package/dist/actions/upload-training-images-by-url.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 +28 -0
- package/dist/index.d.cts +14 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +15 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-details.cjs","names":["z","action"],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput: z.ZodTypeAny = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the category.\"),\n name: z.string().describe(\"Name of the category/field.\"),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\"),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\"),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\"),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",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F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC/D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAElK,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,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/get-model-details.d.ts
|
|
4
|
+
declare const NanoNetsGetModelDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsGetModelDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsGetModelDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsGetModelDetails };
|
|
9
|
+
//# sourceMappingURL=get-model-details.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-details.d.cts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEsB;AAAA,cAQtD,6BAAA,EAA+B,CAAA,CAAE,UAWqH;AAAA,cAEtJ,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-model-details.d.ts
|
|
4
|
+
declare const NanoNetsGetModelDetailsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsGetModelDetailsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsGetModelDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsGetModelDetails };
|
|
9
|
+
//# sourceMappingURL=get-model-details.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-details.d.mts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEsB;AAAA,cAQtD,6BAAA,EAA+B,CAAA,CAAE,UAWqH;AAAA,cAEtJ,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-model-details.ts
|
|
4
|
+
const NanoNetsGetModelDetailsInput = z.object({ model_id: z.string().describe("Unique identifier of the OCR model to retrieve details.") }).describe("Request parameters for retrieving OCR model details.");
|
|
5
|
+
const NanoNetsGetModelDetails_CategoryInfoSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier for the category."),
|
|
7
|
+
name: z.string().describe("Name of the category/field."),
|
|
8
|
+
count: z.number().int().describe("Count of training examples for this category.").nullable().optional(),
|
|
9
|
+
data_type: z.string().describe("Data type of the category.").nullable().optional(),
|
|
10
|
+
description: z.string().describe("Description of the category.").nullable().optional()
|
|
11
|
+
}).passthrough().describe("Schema for a category/field associated with a model.");
|
|
12
|
+
const nanoNetsGetModelDetails = action("NANO_NETS_GET_MODEL_DETAILS", {
|
|
13
|
+
slug: "nano_nets-get-model-details",
|
|
14
|
+
name: "Get OCR Model Details",
|
|
15
|
+
description: "Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.",
|
|
16
|
+
input: NanoNetsGetModelDetailsInput,
|
|
17
|
+
output: z.object({
|
|
18
|
+
email: z.string().describe("Email address associated with the model for uploads.").nullable().optional(),
|
|
19
|
+
state: z.number().int().describe("Current model state as integer (e.g., 5 for 'Model hosted')."),
|
|
20
|
+
status: z.string().describe("Human-readable status of the model (e.g., 'Model hosted').").nullable().optional(),
|
|
21
|
+
is_paid: z.boolean().describe("Whether this is a paid model.").nullable().optional(),
|
|
22
|
+
accuracy: z.number().describe("Model accuracy percentage (0-100).").nullable().optional(),
|
|
23
|
+
model_id: z.string().describe("Unique identifier of the model."),
|
|
24
|
+
is_public: z.boolean().describe("Whether the model is publicly accessible.").nullable().optional(),
|
|
25
|
+
categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe("List of categories/fields that this model can extract.").nullable().optional(),
|
|
26
|
+
is_deleted: z.boolean().describe("Whether the model has been deleted.").nullable().optional(),
|
|
27
|
+
model_type: z.string().describe("Type of the model (e.g., 'ocr').")
|
|
28
|
+
}).passthrough().describe("Response schema for OCR model details.\nContains comprehensive model information including ID, type, status, categories, and metadata.")
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { nanoNetsGetModelDetails };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-model-details.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-model-details.mjs","names":[],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput: z.ZodTypeAny = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the category.\"),\n name: z.string().describe(\"Name of the category/field.\"),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\"),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\"),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\"),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,UAAU,EAAE,OAAO,CAA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,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-training-images.ts
|
|
4
|
+
const NanoNetsGetTrainingImagesInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().default(1).describe("Page number for pagination (1-indexed). Defaults to 1.").optional(),
|
|
6
|
+
model_id: zod.z.string().describe("Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response."),
|
|
7
|
+
page_size: zod.z.number().int().default(50).describe("Number of images to return per page. Defaults to 50.").optional()
|
|
8
|
+
}).describe("Request parameters for retrieving training images of an OCR model.");
|
|
9
|
+
const NanoNetsGetTrainingImages_ImageItemSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the image"),
|
|
11
|
+
url: zod.z.string().describe("URL of the training image"),
|
|
12
|
+
status: zod.z.string().describe("Status of the image"),
|
|
13
|
+
feedback: zod.z.array(zod.z.union([
|
|
14
|
+
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
15
|
+
zod.z.array(zod.z.unknown()),
|
|
16
|
+
zod.z.string(),
|
|
17
|
+
zod.z.number().int(),
|
|
18
|
+
zod.z.number(),
|
|
19
|
+
zod.z.boolean()
|
|
20
|
+
]).nullable()).describe("List of feedback annotations for the image").optional(),
|
|
21
|
+
filename: zod.z.string().describe("Filename of the image"),
|
|
22
|
+
uploaded: zod.z.string().describe("Upload timestamp in ISO 8601 format")
|
|
23
|
+
}).describe("Schema for a single training image metadata.");
|
|
24
|
+
const NanoNetsGetTrainingImagesOutput = zod.z.object({
|
|
25
|
+
next: zod.z.string().describe("URL to the next page of results").nullable().optional(),
|
|
26
|
+
count: zod.z.number().int().describe("Total number of training images"),
|
|
27
|
+
images: zod.z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe("List of training images and their metadata"),
|
|
28
|
+
previous: zod.z.string().describe("URL to the previous page of results").nullable().optional()
|
|
29
|
+
}).describe("Response schema for retrieving training images of an OCR model.");
|
|
30
|
+
const nanoNetsGetTrainingImages = require_action.action("NANO_NETS_GET_TRAINING_IMAGES", {
|
|
31
|
+
slug: "nano_nets-get-training-images",
|
|
32
|
+
name: "Get OCR Training Images",
|
|
33
|
+
description: "Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.",
|
|
34
|
+
input: NanoNetsGetTrainingImagesInput,
|
|
35
|
+
output: NanoNetsGetTrainingImagesOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.nanoNetsGetTrainingImages = nanoNetsGetTrainingImages;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=get-training-images.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-training-images.cjs","names":["z","action"],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetTrainingImagesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed). Defaults to 1.\").optional(),\n model_id: z.string().describe(\"Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response.\"),\n page_size: z.number().int().default(50).describe(\"Number of images to return per page. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for retrieving training images of an OCR model.\");\nconst NanoNetsGetTrainingImages_ImageItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the image\"),\n url: z.string().describe(\"URL of the training image\"),\n status: z.string().describe(\"Status of the image\"),\n feedback: z.array(z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable()).describe(\"List of feedback annotations for the image\").optional(),\n filename: z.string().describe(\"Filename of the image\"),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\"),\n}).describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of training images\"),\n images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe(\"List of training images and their metadata\"),\n previous: z.string().describe(\"URL to the previous page of results\").nullable().optional(),\n}).describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;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.ts
|
|
4
|
+
declare const NanoNetsGetTrainingImagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsGetTrainingImagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsGetTrainingImages };
|
|
9
|
+
//# sourceMappingURL=get-training-images.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-training-images.d.cts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIkC;AAAA,cASpE,+BAAA,EAAiC,CAAA,CAAE,UAK8B;AAAA,cAEjE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-training-images.d.ts
|
|
4
|
+
declare const NanoNetsGetTrainingImagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsGetTrainingImagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsGetTrainingImages };
|
|
9
|
+
//# sourceMappingURL=get-training-images.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-training-images.d.mts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAIkC;AAAA,cASpE,+BAAA,EAAiC,CAAA,CAAE,UAK8B;AAAA,cAEjE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-training-images.ts
|
|
4
|
+
const NanoNetsGetTrainingImagesInput = z.object({
|
|
5
|
+
page: z.number().int().default(1).describe("Page number for pagination (1-indexed). Defaults to 1.").optional(),
|
|
6
|
+
model_id: z.string().describe("Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response."),
|
|
7
|
+
page_size: z.number().int().default(50).describe("Number of images to return per page. Defaults to 50.").optional()
|
|
8
|
+
}).describe("Request parameters for retrieving training images of an OCR model.");
|
|
9
|
+
const NanoNetsGetTrainingImages_ImageItemSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the image"),
|
|
11
|
+
url: z.string().describe("URL of the training image"),
|
|
12
|
+
status: z.string().describe("Status of the image"),
|
|
13
|
+
feedback: z.array(z.union([
|
|
14
|
+
z.record(z.string(), z.unknown()),
|
|
15
|
+
z.array(z.unknown()),
|
|
16
|
+
z.string(),
|
|
17
|
+
z.number().int(),
|
|
18
|
+
z.number(),
|
|
19
|
+
z.boolean()
|
|
20
|
+
]).nullable()).describe("List of feedback annotations for the image").optional(),
|
|
21
|
+
filename: z.string().describe("Filename of the image"),
|
|
22
|
+
uploaded: z.string().describe("Upload timestamp in ISO 8601 format")
|
|
23
|
+
}).describe("Schema for a single training image metadata.");
|
|
24
|
+
const nanoNetsGetTrainingImages = action("NANO_NETS_GET_TRAINING_IMAGES", {
|
|
25
|
+
slug: "nano_nets-get-training-images",
|
|
26
|
+
name: "Get OCR Training Images",
|
|
27
|
+
description: "Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.",
|
|
28
|
+
input: NanoNetsGetTrainingImagesInput,
|
|
29
|
+
output: z.object({
|
|
30
|
+
next: z.string().describe("URL to the next page of results").nullable().optional(),
|
|
31
|
+
count: z.number().int().describe("Total number of training images"),
|
|
32
|
+
images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe("List of training images and their metadata"),
|
|
33
|
+
previous: z.string().describe("URL to the previous page of results").nullable().optional()
|
|
34
|
+
}).describe("Response schema for retrieving training images of an OCR model.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { nanoNetsGetTrainingImages };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-training-images.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-training-images.mjs","names":[],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetTrainingImagesInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed). Defaults to 1.\").optional(),\n model_id: z.string().describe(\"Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response.\"),\n page_size: z.number().int().default(50).describe(\"Number of images to return per page. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for retrieving training images of an OCR model.\");\nconst NanoNetsGetTrainingImages_ImageItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the image\"),\n url: z.string().describe(\"URL of the training image\"),\n status: z.string().describe(\"Status of the image\"),\n feedback: z.array(z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable()).describe(\"List of feedback annotations for the image\").optional(),\n filename: z.string().describe(\"Filename of the image\"),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\"),\n}).describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of training images\"),\n images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe(\"List of training images and their metadata\"),\n previous: z.string().describe(\"URL to the previous page of results\").nullable().optional(),\n}).describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACjD,UAAU,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACrE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAQ1D,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EAClE,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-workflows.ts
|
|
4
|
+
const NanoNetsGetWorkflowsInput = zod.z.object({}).describe("Request schema for listing all workflows.");
|
|
5
|
+
const NanoNetsGetWorkflows_WorkflowSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the workflow."),
|
|
7
|
+
type: zod.z.string().describe("Type of the workflow (e.g., 'invoice', 'receipt')."),
|
|
8
|
+
settings: zod.z.union([
|
|
9
|
+
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
10
|
+
zod.z.array(zod.z.unknown()),
|
|
11
|
+
zod.z.string(),
|
|
12
|
+
zod.z.number().int(),
|
|
13
|
+
zod.z.number(),
|
|
14
|
+
zod.z.boolean()
|
|
15
|
+
]).nullable(),
|
|
16
|
+
description: zod.z.string().describe("Description of the workflow.")
|
|
17
|
+
}).describe("Schema for a single workflow in Nanonets.");
|
|
18
|
+
const NanoNetsGetWorkflowsOutput = zod.z.object({ workflows: zod.z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).describe("Response schema for listing workflows.");
|
|
19
|
+
const nanoNetsGetWorkflows = require_action.action("NANO_NETS_GET_WORKFLOWS", {
|
|
20
|
+
slug: "nano_nets-get-workflows",
|
|
21
|
+
name: "Get Workflows",
|
|
22
|
+
description: "Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.",
|
|
23
|
+
input: NanoNetsGetWorkflowsInput,
|
|
24
|
+
output: NanoNetsGetWorkflowsOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.nanoNetsGetWorkflows = nanoNetsGetWorkflows;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-workflows.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflows.cjs","names":["z","action"],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetWorkflowsInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\"),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\"),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\"),\n}).describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput: z.ZodTypeAny = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACxH,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,UAAUA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,WAAWA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,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/get-workflows.d.ts
|
|
4
|
+
declare const NanoNetsGetWorkflowsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsGetWorkflowsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsGetWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsGetWorkflows };
|
|
9
|
+
//# sourceMappingURL=get-workflows.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA+E;AAAA,cAO5G,0BAAA,EAA4B,CAAA,CAAE,UAEU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-workflows.d.ts
|
|
4
|
+
declare const NanoNetsGetWorkflowsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsGetWorkflowsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsGetWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsGetWorkflows };
|
|
9
|
+
//# sourceMappingURL=get-workflows.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA+E;AAAA,cAO5G,0BAAA,EAA4B,CAAA,CAAE,UAEU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-workflows.ts
|
|
4
|
+
const NanoNetsGetWorkflowsInput = z.object({}).describe("Request schema for listing all workflows.");
|
|
5
|
+
const NanoNetsGetWorkflows_WorkflowSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier for the workflow."),
|
|
7
|
+
type: z.string().describe("Type of the workflow (e.g., 'invoice', 'receipt')."),
|
|
8
|
+
settings: z.union([
|
|
9
|
+
z.record(z.string(), z.unknown()),
|
|
10
|
+
z.array(z.unknown()),
|
|
11
|
+
z.string(),
|
|
12
|
+
z.number().int(),
|
|
13
|
+
z.number(),
|
|
14
|
+
z.boolean()
|
|
15
|
+
]).nullable(),
|
|
16
|
+
description: z.string().describe("Description of the workflow.")
|
|
17
|
+
}).describe("Schema for a single workflow in Nanonets.");
|
|
18
|
+
const nanoNetsGetWorkflows = action("NANO_NETS_GET_WORKFLOWS", {
|
|
19
|
+
slug: "nano_nets-get-workflows",
|
|
20
|
+
name: "Get Workflows",
|
|
21
|
+
description: "Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.",
|
|
22
|
+
input: NanoNetsGetWorkflowsInput,
|
|
23
|
+
output: z.object({ workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).describe("Response schema for listing workflows.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { nanoNetsGetWorkflows };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-workflows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-workflows.mjs","names":[],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetWorkflowsInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\"),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\"),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\"),\n}).describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput: z.ZodTypeAny = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACxH,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,UAAU,EAAE,MAAM;EAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAKvD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,WAAW,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_model = require("./create-model.cjs");
|
|
3
|
+
const require_delete_model = require("./delete-model.cjs");
|
|
4
|
+
const require_get_all_models = require("./get-all-models.cjs");
|
|
5
|
+
const require_get_all_prediction_files = require("./get-all-prediction-files.cjs");
|
|
6
|
+
const require_get_model_details = require("./get-model-details.cjs");
|
|
7
|
+
const require_get_training_images = require("./get-training-images.cjs");
|
|
8
|
+
const require_get_workflows = require("./get-workflows.cjs");
|
|
9
|
+
const require_list_documents = require("./list-documents.cjs");
|
|
10
|
+
const require_update_model = require("./update-model.cjs");
|
|
11
|
+
const require_upload_training_images_by_file = require("./upload-training-images-by-file.cjs");
|
|
12
|
+
const require_upload_training_images_by_url = require("./upload-training-images-by-url.cjs");
|
|
13
|
+
exports.nanoNetsCreateModel = require_create_model.nanoNetsCreateModel;
|
|
14
|
+
exports.nanoNetsDeleteModel = require_delete_model.nanoNetsDeleteModel;
|
|
15
|
+
exports.nanoNetsGetAllModels = require_get_all_models.nanoNetsGetAllModels;
|
|
16
|
+
exports.nanoNetsGetAllPredictionFiles = require_get_all_prediction_files.nanoNetsGetAllPredictionFiles;
|
|
17
|
+
exports.nanoNetsGetModelDetails = require_get_model_details.nanoNetsGetModelDetails;
|
|
18
|
+
exports.nanoNetsGetTrainingImages = require_get_training_images.nanoNetsGetTrainingImages;
|
|
19
|
+
exports.nanoNetsGetWorkflows = require_get_workflows.nanoNetsGetWorkflows;
|
|
20
|
+
exports.nanoNetsListDocuments = require_list_documents.nanoNetsListDocuments;
|
|
21
|
+
exports.nanoNetsUpdateModel = require_update_model.nanoNetsUpdateModel;
|
|
22
|
+
exports.nanoNetsUploadTrainingImagesByFile = require_upload_training_images_by_file.nanoNetsUploadTrainingImagesByFile;
|
|
23
|
+
exports.nanoNetsUploadTrainingImagesByUrl = require_upload_training_images_by_url.nanoNetsUploadTrainingImagesByUrl;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { nanoNetsCreateModel } from "./create-model.cjs";
|
|
2
|
+
import { nanoNetsDeleteModel } from "./delete-model.cjs";
|
|
3
|
+
import { nanoNetsGetAllModels } from "./get-all-models.cjs";
|
|
4
|
+
import { nanoNetsGetAllPredictionFiles } from "./get-all-prediction-files.cjs";
|
|
5
|
+
import { nanoNetsGetModelDetails } from "./get-model-details.cjs";
|
|
6
|
+
import { nanoNetsGetTrainingImages } from "./get-training-images.cjs";
|
|
7
|
+
import { nanoNetsGetWorkflows } from "./get-workflows.cjs";
|
|
8
|
+
import { nanoNetsListDocuments } from "./list-documents.cjs";
|
|
9
|
+
import { nanoNetsUpdateModel } from "./update-model.cjs";
|
|
10
|
+
import { nanoNetsUploadTrainingImagesByFile } from "./upload-training-images-by-file.cjs";
|
|
11
|
+
import { nanoNetsUploadTrainingImagesByUrl } from "./upload-training-images-by-url.cjs";
|
|
12
|
+
export { nanoNetsCreateModel, nanoNetsDeleteModel, nanoNetsGetAllModels, nanoNetsGetAllPredictionFiles, nanoNetsGetModelDetails, nanoNetsGetTrainingImages, nanoNetsGetWorkflows, nanoNetsListDocuments, nanoNetsUpdateModel, nanoNetsUploadTrainingImagesByFile, nanoNetsUploadTrainingImagesByUrl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { nanoNetsCreateModel } from "./create-model.mjs";
|
|
2
|
+
import { nanoNetsDeleteModel } from "./delete-model.mjs";
|
|
3
|
+
import { nanoNetsGetAllModels } from "./get-all-models.mjs";
|
|
4
|
+
import { nanoNetsGetAllPredictionFiles } from "./get-all-prediction-files.mjs";
|
|
5
|
+
import { nanoNetsGetModelDetails } from "./get-model-details.mjs";
|
|
6
|
+
import { nanoNetsGetTrainingImages } from "./get-training-images.mjs";
|
|
7
|
+
import { nanoNetsGetWorkflows } from "./get-workflows.mjs";
|
|
8
|
+
import { nanoNetsListDocuments } from "./list-documents.mjs";
|
|
9
|
+
import { nanoNetsUpdateModel } from "./update-model.mjs";
|
|
10
|
+
import { nanoNetsUploadTrainingImagesByFile } from "./upload-training-images-by-file.mjs";
|
|
11
|
+
import { nanoNetsUploadTrainingImagesByUrl } from "./upload-training-images-by-url.mjs";
|
|
12
|
+
export { nanoNetsCreateModel, nanoNetsDeleteModel, nanoNetsGetAllModels, nanoNetsGetAllPredictionFiles, nanoNetsGetModelDetails, nanoNetsGetTrainingImages, nanoNetsGetWorkflows, nanoNetsListDocuments, nanoNetsUpdateModel, nanoNetsUploadTrainingImagesByFile, nanoNetsUploadTrainingImagesByUrl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { nanoNetsCreateModel } from "./create-model.mjs";
|
|
2
|
+
import { nanoNetsDeleteModel } from "./delete-model.mjs";
|
|
3
|
+
import { nanoNetsGetAllModels } from "./get-all-models.mjs";
|
|
4
|
+
import { nanoNetsGetAllPredictionFiles } from "./get-all-prediction-files.mjs";
|
|
5
|
+
import { nanoNetsGetModelDetails } from "./get-model-details.mjs";
|
|
6
|
+
import { nanoNetsGetTrainingImages } from "./get-training-images.mjs";
|
|
7
|
+
import { nanoNetsGetWorkflows } from "./get-workflows.mjs";
|
|
8
|
+
import { nanoNetsListDocuments } from "./list-documents.mjs";
|
|
9
|
+
import { nanoNetsUpdateModel } from "./update-model.mjs";
|
|
10
|
+
import { nanoNetsUploadTrainingImagesByFile } from "./upload-training-images-by-file.mjs";
|
|
11
|
+
import { nanoNetsUploadTrainingImagesByUrl } from "./upload-training-images-by-url.mjs";
|
|
12
|
+
export { nanoNetsCreateModel, nanoNetsDeleteModel, nanoNetsGetAllModels, nanoNetsGetAllPredictionFiles, nanoNetsGetModelDetails, nanoNetsGetTrainingImages, nanoNetsGetWorkflows, nanoNetsListDocuments, nanoNetsUpdateModel, nanoNetsUploadTrainingImagesByFile, nanoNetsUploadTrainingImagesByUrl };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-documents.ts
|
|
4
|
+
const NanoNetsListDocumentsInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number for pagination (1-indexed). Defaults to 1 if not specified.").optional(),
|
|
6
|
+
limit: zod.z.number().int().describe("Number of documents per page. Defaults to 50 if not specified.").optional(),
|
|
7
|
+
workflow_id: zod.z.string().describe("The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.")
|
|
8
|
+
}).describe("Request schema for listing documents processed by a workflow.");
|
|
9
|
+
const NanoNetsListDocuments_PageDataSchema = zod.z.object({
|
|
10
|
+
fields: zod.z.unknown().describe("Extracted fields from the page.").nullable().optional(),
|
|
11
|
+
tables: zod.z.unknown().describe("Extracted tables from the page.").nullable().optional()
|
|
12
|
+
}).passthrough().describe("Schema for extracted data from a document page.");
|
|
13
|
+
const NanoNetsListDocuments_DocumentPageSchema = zod.z.object({
|
|
14
|
+
data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),
|
|
15
|
+
page_id: zod.z.string().describe("Unique identifier for the document page."),
|
|
16
|
+
image_url: zod.z.string().describe("URL of the page image.").nullable().optional(),
|
|
17
|
+
page_number: zod.z.number().int().describe("Page number within the document (0-indexed).")
|
|
18
|
+
}).passthrough().describe("Schema for a page within a document.");
|
|
19
|
+
const NanoNetsListDocuments_DocumentSchema = zod.z.object({
|
|
20
|
+
pages: zod.z.array(NanoNetsListDocuments_DocumentPageSchema).describe("List of processed pages within the document.").nullable().optional(),
|
|
21
|
+
status: zod.z.string().describe("Processing status of the document (e.g., 'success', 'processing', 'failed')."),
|
|
22
|
+
metadata: zod.z.string().describe("JSON string containing additional document metadata (e.g., email info).").nullable().optional(),
|
|
23
|
+
document_id: zod.z.string().describe("Unique identifier for the document."),
|
|
24
|
+
uploaded_at: zod.z.string().describe("Timestamp when the document was uploaded (ISO 8601)."),
|
|
25
|
+
raw_document_url: zod.z.string().describe("URL path to the raw uploaded document.").nullable().optional(),
|
|
26
|
+
assigned_reviewers: zod.z.array(zod.z.string()).describe("List of assigned reviewer IDs.").nullable().optional(),
|
|
27
|
+
verification_stage: zod.z.string().describe("Current verification stage identifier.").nullable().optional(),
|
|
28
|
+
verification_status: zod.z.string().describe("Status of human verification (e.g., 'success', 'pending').").nullable().optional(),
|
|
29
|
+
original_document_name: zod.z.string().describe("Original filename of the uploaded document.").nullable().optional()
|
|
30
|
+
}).passthrough().describe("Schema for a document in the workflow.");
|
|
31
|
+
const NanoNetsListDocumentsOutput = zod.z.object({
|
|
32
|
+
page_no: zod.z.number().int().describe("Current page number."),
|
|
33
|
+
documents: zod.z.array(NanoNetsListDocuments_DocumentSchema).describe("List of documents returned by the API.").nullable().optional(),
|
|
34
|
+
page_size: zod.z.number().int().describe("Number of documents per page."),
|
|
35
|
+
total_count: zod.z.number().int().describe("Total number of documents in the workflow.")
|
|
36
|
+
}).describe("Response schema containing paginated list of workflow documents.");
|
|
37
|
+
const nanoNetsListDocuments = require_action.action("NANO_NETS_LIST_DOCUMENTS", {
|
|
38
|
+
slug: "nano_nets-list-documents",
|
|
39
|
+
name: "List Workflow Documents",
|
|
40
|
+
description: "Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.",
|
|
41
|
+
input: NanoNetsListDocumentsInput,
|
|
42
|
+
output: NanoNetsListDocumentsOutput
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.nanoNetsListDocuments = nanoNetsListDocuments;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=list-documents.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsListDocumentsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema: z.ZodTypeAny = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema: z.ZodTypeAny = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\"),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\"),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema: z.ZodTypeAny = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\"),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\"),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\"),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput: z.ZodTypeAny = z.object({\n page_no: z.number().int().describe(\"Current page number.\"),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\"),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\"),\n}).describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;AACtK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,2CAAyDA,IAA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SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACzD,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACrF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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/list-documents.d.ts
|
|
4
|
+
declare const NanoNetsListDocumentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsListDocumentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsListDocuments };
|
|
9
|
+
//# sourceMappingURL=list-documents.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIiC;AAAA,cAuB/D,2BAAA,EAA6B,CAAA,CAAE,UAKmC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-documents.d.ts
|
|
4
|
+
declare const NanoNetsListDocumentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsListDocumentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsListDocuments };
|
|
9
|
+
//# sourceMappingURL=list-documents.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIiC;AAAA,cAuB/D,2BAAA,EAA6B,CAAA,CAAE,UAKmC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-documents.ts
|
|
4
|
+
const NanoNetsListDocumentsInput = z.object({
|
|
5
|
+
page: z.number().int().describe("Page number for pagination (1-indexed). Defaults to 1 if not specified.").optional(),
|
|
6
|
+
limit: z.number().int().describe("Number of documents per page. Defaults to 50 if not specified.").optional(),
|
|
7
|
+
workflow_id: z.string().describe("The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.")
|
|
8
|
+
}).describe("Request schema for listing documents processed by a workflow.");
|
|
9
|
+
const NanoNetsListDocuments_PageDataSchema = z.object({
|
|
10
|
+
fields: z.unknown().describe("Extracted fields from the page.").nullable().optional(),
|
|
11
|
+
tables: z.unknown().describe("Extracted tables from the page.").nullable().optional()
|
|
12
|
+
}).passthrough().describe("Schema for extracted data from a document page.");
|
|
13
|
+
const NanoNetsListDocuments_DocumentPageSchema = z.object({
|
|
14
|
+
data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),
|
|
15
|
+
page_id: z.string().describe("Unique identifier for the document page."),
|
|
16
|
+
image_url: z.string().describe("URL of the page image.").nullable().optional(),
|
|
17
|
+
page_number: z.number().int().describe("Page number within the document (0-indexed).")
|
|
18
|
+
}).passthrough().describe("Schema for a page within a document.");
|
|
19
|
+
const NanoNetsListDocuments_DocumentSchema = z.object({
|
|
20
|
+
pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe("List of processed pages within the document.").nullable().optional(),
|
|
21
|
+
status: z.string().describe("Processing status of the document (e.g., 'success', 'processing', 'failed')."),
|
|
22
|
+
metadata: z.string().describe("JSON string containing additional document metadata (e.g., email info).").nullable().optional(),
|
|
23
|
+
document_id: z.string().describe("Unique identifier for the document."),
|
|
24
|
+
uploaded_at: z.string().describe("Timestamp when the document was uploaded (ISO 8601)."),
|
|
25
|
+
raw_document_url: z.string().describe("URL path to the raw uploaded document.").nullable().optional(),
|
|
26
|
+
assigned_reviewers: z.array(z.string()).describe("List of assigned reviewer IDs.").nullable().optional(),
|
|
27
|
+
verification_stage: z.string().describe("Current verification stage identifier.").nullable().optional(),
|
|
28
|
+
verification_status: z.string().describe("Status of human verification (e.g., 'success', 'pending').").nullable().optional(),
|
|
29
|
+
original_document_name: z.string().describe("Original filename of the uploaded document.").nullable().optional()
|
|
30
|
+
}).passthrough().describe("Schema for a document in the workflow.");
|
|
31
|
+
const nanoNetsListDocuments = action("NANO_NETS_LIST_DOCUMENTS", {
|
|
32
|
+
slug: "nano_nets-list-documents",
|
|
33
|
+
name: "List Workflow Documents",
|
|
34
|
+
description: "Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.",
|
|
35
|
+
input: NanoNetsListDocumentsInput,
|
|
36
|
+
output: z.object({
|
|
37
|
+
page_no: z.number().int().describe("Current page number."),
|
|
38
|
+
documents: z.array(NanoNetsListDocuments_DocumentSchema).describe("List of documents returned by the API.").nullable().optional(),
|
|
39
|
+
page_size: z.number().int().describe("Number of documents per page."),
|
|
40
|
+
total_count: z.number().int().describe("Total number of documents in the workflow.")
|
|
41
|
+
}).describe("Response schema containing paginated list of workflow documents.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { nanoNetsListDocuments };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=list-documents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsListDocumentsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema: z.ZodTypeAny = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema: z.ZodTypeAny = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\"),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\"),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema: z.ZodTypeAny = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\"),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\"),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\"),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput: z.ZodTypeAny = z.object({\n page_no: z.number().int().describe(\"Current page number.\"),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\"),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\"),\n}).describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,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kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;EACzD,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CACrF,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-model.ts
|
|
4
|
+
const NanoNetsUpdateModelInput = zod.z.object({
|
|
5
|
+
model_id: zod.z.string().describe("Unique identifier of the OCR model to update AI guidelines for."),
|
|
6
|
+
field_instructions: zod.z.string().describe("Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data."),
|
|
7
|
+
table_instructions: zod.z.string().describe("Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.")
|
|
8
|
+
}).describe("Request schema for updating an OCR model's AI Agent guidelines.\nOnly works for Instant Learning models.");
|
|
9
|
+
const NanoNetsUpdateModelOutput = zod.z.object({
|
|
10
|
+
result: zod.z.string().describe("Result status from the update operation.").nullable().optional(),
|
|
11
|
+
message: zod.z.string().describe("Status message of the update operation.").nullable().optional()
|
|
12
|
+
}).passthrough().describe("Response schema for the AI Agent guidelines update.");
|
|
13
|
+
const nanoNetsUpdateModel = require_action.action("NANO_NETS_UPDATE_MODEL", {
|
|
14
|
+
slug: "nano_nets-update-model",
|
|
15
|
+
name: "Update Model AI Guidelines",
|
|
16
|
+
description: "Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.",
|
|
17
|
+
input: NanoNetsUpdateModelInput,
|
|
18
|
+
output: NanoNetsUpdateModelOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.nanoNetsUpdateModel = nanoNetsUpdateModel;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=update-model.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-model.cjs","names":["z","action"],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUpdateModelInput: z.ZodTypeAny = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput: z.ZodTypeAny = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC3K,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,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/update-model.d.ts
|
|
4
|
+
declare const NanoNetsUpdateModelInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsUpdateModelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsUpdateModel };
|
|
9
|
+
//# sourceMappingURL=update-model.d.cts.map
|