@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":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI8E;AAAA,cAC1G,yBAAA,EAA2B,CAAA,CAAE,UAGsC;AAAA,cAEnE,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI8E;AAAA,cAC1G,yBAAA,EAA2B,CAAA,CAAE,UAGsC;AAAA,cAEnE,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const nanoNetsUpdateModel = action("NANO_NETS_UPDATE_MODEL", {
|
|
4
|
+
slug: "nano_nets-update-model",
|
|
5
|
+
name: "Update Model AI Guidelines",
|
|
6
|
+
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.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
model_id: z.string().describe("Unique identifier of the OCR model to update AI guidelines for."),
|
|
9
|
+
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."),
|
|
10
|
+
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.")
|
|
11
|
+
}).describe("Request schema for updating an OCR model's AI Agent guidelines.\nOnly works for Instant Learning models."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
result: z.string().describe("Result status from the update operation.").nullable().optional(),
|
|
14
|
+
message: z.string().describe("Status message of the update operation.").nullable().optional()
|
|
15
|
+
}).passthrough().describe("Response schema for the AI Agent guidelines update.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { nanoNetsUpdateModel };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=update-model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-model.mjs","names":[],"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":";;AAcA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAC/F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EACvK,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3K,CAAC,CAAC,CAAC,SAAS,0GAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/upload-training-images-by-file.ts
|
|
4
|
+
const NanoNetsUploadTrainingImagesByFileInput = zod.z.object({
|
|
5
|
+
file: zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
7
|
+
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."),
|
|
8
|
+
mimetype: zod.z.string().describe("The MIME type of the file")
|
|
9
|
+
}).describe("The image file to upload for training. Supported formats: PNG, JPEG, PDF."),
|
|
10
|
+
model_id: zod.z.string().describe("Unique identifier of the OCR model to which the image will be uploaded.")
|
|
11
|
+
}).describe("Request parameters for uploading a training image file to an OCR model.");
|
|
12
|
+
const NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema = zod.z.object({
|
|
13
|
+
id: zod.z.string().describe("Unique identifier for the category."),
|
|
14
|
+
name: zod.z.string().describe("Name of the category."),
|
|
15
|
+
count: zod.z.number().int().describe("Number of images in this category.")
|
|
16
|
+
}).describe("Information about a category in the model.");
|
|
17
|
+
const NanoNetsUploadTrainingImagesByFileOutput = zod.z.object({
|
|
18
|
+
state: zod.z.number().int().describe("Current state code of the model."),
|
|
19
|
+
model_id: zod.z.string().describe("Unique identifier of the model the image was uploaded to."),
|
|
20
|
+
categories: zod.z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe("List of categories in the model with image counts."),
|
|
21
|
+
model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').")
|
|
22
|
+
}).describe("Response schema for the training image file upload operation.");
|
|
23
|
+
const nanoNetsUploadTrainingImagesByFile = require_action.action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE", {
|
|
24
|
+
slug: "nano_nets-upload-training-images-by-file",
|
|
25
|
+
name: "Upload Training Images by File",
|
|
26
|
+
description: "Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.",
|
|
27
|
+
input: NanoNetsUploadTrainingImagesByFileInput,
|
|
28
|
+
output: NanoNetsUploadTrainingImagesByFileOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.nanoNetsUploadTrainingImagesByFile = nanoNetsUploadTrainingImagesByFile;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=upload-training-images-by-file.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.cjs","names":["z","action"],"sources":["../../src/actions/upload-training-images-by-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUploadTrainingImagesByFileInput: z.ZodTypeAny = z.object({\n file: 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}).describe(\"The image file to upload for training. Supported formats: PNG, JPEG, PDF.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the image will be uploaded.\"),\n}).describe(\"Request parameters for uploading a training image file to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the category.\"),\n name: z.string().describe(\"Name of the category.\"),\n count: z.number().int().describe(\"Number of images in this category.\"),\n}).describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny = z.object({\n state: z.number().int().describe(\"Current state code of the model.\"),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\"),\n categories: z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe(\"List of categories in the model with image counts.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\"),\n}).describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE\", {\n slug: \"nano_nets-upload-training-images-by-file\",\n name: \"Upload Training Images by File\",\n description: \"Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.\",\n input: NanoNetsUploadTrainingImagesByFileInput,\n output: NanoNetsUploadTrainingImagesByFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,2EAA2E;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;AACzG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,YAAYA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACpE,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,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/upload-training-images-by-file.d.ts
|
|
4
|
+
declare const NanoNetsUploadTrainingImagesByFileInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsUploadTrainingImagesByFile };
|
|
9
|
+
//# sourceMappingURL=upload-training-images-by-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAO8B;AAAA,cAMzE,wCAAA,EAA0C,CAAA,CAAE,UAKmB;AAAA,cAE/D,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/upload-training-images-by-file.d.ts
|
|
4
|
+
declare const NanoNetsUploadTrainingImagesByFileInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsUploadTrainingImagesByFile };
|
|
9
|
+
//# sourceMappingURL=upload-training-images-by-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.d.mts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAO8B;AAAA,cAMzE,wCAAA,EAA0C,CAAA,CAAE,UAKmB;AAAA,cAE/D,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/upload-training-images-by-file.ts
|
|
4
|
+
const NanoNetsUploadTrainingImagesByFileInput = z.object({
|
|
5
|
+
file: z.object({
|
|
6
|
+
name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
7
|
+
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."),
|
|
8
|
+
mimetype: z.string().describe("The MIME type of the file")
|
|
9
|
+
}).describe("The image file to upload for training. Supported formats: PNG, JPEG, PDF."),
|
|
10
|
+
model_id: z.string().describe("Unique identifier of the OCR model to which the image will be uploaded.")
|
|
11
|
+
}).describe("Request parameters for uploading a training image file to an OCR model.");
|
|
12
|
+
const NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema = z.object({
|
|
13
|
+
id: z.string().describe("Unique identifier for the category."),
|
|
14
|
+
name: z.string().describe("Name of the category."),
|
|
15
|
+
count: z.number().int().describe("Number of images in this category.")
|
|
16
|
+
}).describe("Information about a category in the model.");
|
|
17
|
+
const nanoNetsUploadTrainingImagesByFile = action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE", {
|
|
18
|
+
slug: "nano_nets-upload-training-images-by-file",
|
|
19
|
+
name: "Upload Training Images by File",
|
|
20
|
+
description: "Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.",
|
|
21
|
+
input: NanoNetsUploadTrainingImagesByFileInput,
|
|
22
|
+
output: z.object({
|
|
23
|
+
state: z.number().int().describe("Current state code of the model."),
|
|
24
|
+
model_id: z.string().describe("Unique identifier of the model the image was uploaded to."),
|
|
25
|
+
categories: z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe("List of categories in the model with image counts."),
|
|
26
|
+
model_type: z.string().describe("Type of the model (e.g., 'ocr').")
|
|
27
|
+
}).describe("Response schema for the training image file upload operation.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { nanoNetsUploadTrainingImagesByFile };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=upload-training-images-by-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.mjs","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUploadTrainingImagesByFileInput: z.ZodTypeAny = z.object({\n file: 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}).describe(\"The image file to upload for training. Supported formats: PNG, JPEG, PDF.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the image will be uploaded.\"),\n}).describe(\"Request parameters for uploading a training image file to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the category.\"),\n name: z.string().describe(\"Name of the category.\"),\n count: z.number().int().describe(\"Number of images in this category.\"),\n}).describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny = z.object({\n state: z.number().int().describe(\"Current state code of the model.\"),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\"),\n categories: z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe(\"List of categories in the model with image counts.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\"),\n}).describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE\", {\n slug: \"nano_nets-upload-training-images-by-file\",\n name: \"Upload Training Images by File\",\n description: \"Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.\",\n input: NanoNetsUploadTrainingImagesByFileInput,\n output: NanoNetsUploadTrainingImagesByFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwD,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,2EAA2E;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;AACzG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,wDAAsE,EAAE,OAAO;CACnF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAQxD,MAAa,qCAAqC,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoE,EAAE,OAAO;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACzF,YAAY,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACpE,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/upload-training-images-by-url.ts
|
|
4
|
+
const NanoNetsUploadTrainingImagesByUrlInput = zod.z.object({
|
|
5
|
+
urls: zod.z.array(zod.z.string()).describe("List of publicly accessible image URLs to upload for training."),
|
|
6
|
+
model_id: zod.z.string().describe("Unique identifier of the OCR model to which the images will be uploaded.")
|
|
7
|
+
}).describe("Request parameters for uploading training images by URL to an OCR model.");
|
|
8
|
+
const NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema = zod.z.object({
|
|
9
|
+
url: zod.z.string().describe("URL of the successfully uploaded image."),
|
|
10
|
+
upload_id: zod.z.string().describe("Unique upload ID for the image.")
|
|
11
|
+
}).describe("Details of a successfully uploaded image URL.");
|
|
12
|
+
const NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = zod.z.object({
|
|
13
|
+
url: zod.z.string().describe("URL of the duplicate image."),
|
|
14
|
+
upload_id: zod.z.string().describe("Upload ID of the original image.")
|
|
15
|
+
}).describe("Details of a duplicate image URL.");
|
|
16
|
+
const NanoNetsUploadTrainingImagesByUrlOutput = zod.z.object({
|
|
17
|
+
invalid: zod.z.array(zod.z.string()).describe("List of invalid URLs that could not be processed."),
|
|
18
|
+
message: zod.z.string().describe("Status message returned by the API."),
|
|
19
|
+
uploaded: zod.z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe("List of successfully uploaded image details."),
|
|
20
|
+
duplicate: zod.z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe("List of duplicate image details, if any.")
|
|
21
|
+
}).describe("Response schema for uploading training images by URL.");
|
|
22
|
+
const nanoNetsUploadTrainingImagesByUrl = require_action.action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL", {
|
|
23
|
+
slug: "nano_nets-upload-training-images-by-url",
|
|
24
|
+
name: "Upload Training Images by URL",
|
|
25
|
+
description: "Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.",
|
|
26
|
+
input: NanoNetsUploadTrainingImagesByUrlInput,
|
|
27
|
+
output: NanoNetsUploadTrainingImagesByUrlOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.nanoNetsUploadTrainingImagesByUrl = nanoNetsUploadTrainingImagesByUrl;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=upload-training-images-by-url.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.cjs","names":["z","action"],"sources":["../../src/actions/upload-training-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUploadTrainingImagesByUrlInput: z.ZodTypeAny = z.object({\n urls: z.array(z.string()).describe(\"List of publicly accessible image URLs to upload for training.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the images will be uploaded.\"),\n}).describe(\"Request parameters for uploading training images by URL to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the successfully uploaded image.\"),\n upload_id: z.string().describe(\"Unique upload ID for the image.\"),\n}).describe(\"Details of a successfully uploaded image URL.\");\nconst NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the duplicate image.\"),\n upload_id: z.string().describe(\"Upload ID of the original image.\"),\n}).describe(\"Details of a duplicate image URL.\");\nexport const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodTypeAny = z.object({\n invalid: z.array(z.string()).describe(\"List of invalid URLs that could not be processed.\"),\n message: z.string().describe(\"Status message returned by the API.\"),\n uploaded: z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe(\"List of successfully uploaded image details.\"),\n duplicate: z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe(\"List of duplicate image details, if any.\"),\n}).describe(\"Response schema for uploading training images by URL.\");\n\nexport const nanoNetsUploadTrainingImagesByUrl = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL\", {\n slug: \"nano_nets-upload-training-images-by-url\",\n name: \"Upload Training Images by URL\",\n description: \"Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.\",\n input: NanoNetsUploadTrainingImagesByUrlInput,\n output: NanoNetsUploadTrainingImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC1G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAClE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,UAAUA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,8CAA8C;CAC/H,WAAWA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,0CAA0C;AAC/H,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,oCAAoCC,eAAAA,OAAO,2CAA2C;CACjG,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/upload-training-images-by-url.d.ts
|
|
4
|
+
declare const NanoNetsUploadTrainingImagesByUrlInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsUploadTrainingImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsUploadTrainingImagesByUrl };
|
|
9
|
+
//# sourceMappingURL=upload-training-images-by-url.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAGgC;AAAA,cAS1E,uCAAA,EAAyC,CAAA,CAAE,UAKY;AAAA,cAEvD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/upload-training-images-by-url.d.ts
|
|
4
|
+
declare const NanoNetsUploadTrainingImagesByUrlInput: z.ZodTypeAny;
|
|
5
|
+
declare const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodTypeAny;
|
|
6
|
+
declare const nanoNetsUploadTrainingImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { nanoNetsUploadTrainingImagesByUrl };
|
|
9
|
+
//# sourceMappingURL=upload-training-images-by-url.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.d.mts","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAGgC;AAAA,cAS1E,uCAAA,EAAyC,CAAA,CAAE,UAKY;AAAA,cAEvD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/upload-training-images-by-url.ts
|
|
4
|
+
const NanoNetsUploadTrainingImagesByUrlInput = z.object({
|
|
5
|
+
urls: z.array(z.string()).describe("List of publicly accessible image URLs to upload for training."),
|
|
6
|
+
model_id: z.string().describe("Unique identifier of the OCR model to which the images will be uploaded.")
|
|
7
|
+
}).describe("Request parameters for uploading training images by URL to an OCR model.");
|
|
8
|
+
const NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema = z.object({
|
|
9
|
+
url: z.string().describe("URL of the successfully uploaded image."),
|
|
10
|
+
upload_id: z.string().describe("Unique upload ID for the image.")
|
|
11
|
+
}).describe("Details of a successfully uploaded image URL.");
|
|
12
|
+
const NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = z.object({
|
|
13
|
+
url: z.string().describe("URL of the duplicate image."),
|
|
14
|
+
upload_id: z.string().describe("Upload ID of the original image.")
|
|
15
|
+
}).describe("Details of a duplicate image URL.");
|
|
16
|
+
const nanoNetsUploadTrainingImagesByUrl = action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL", {
|
|
17
|
+
slug: "nano_nets-upload-training-images-by-url",
|
|
18
|
+
name: "Upload Training Images by URL",
|
|
19
|
+
description: "Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.",
|
|
20
|
+
input: NanoNetsUploadTrainingImagesByUrlInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
invalid: z.array(z.string()).describe("List of invalid URLs that could not be processed."),
|
|
23
|
+
message: z.string().describe("Status message returned by the API."),
|
|
24
|
+
uploaded: z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe("List of successfully uploaded image details."),
|
|
25
|
+
duplicate: z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe("List of duplicate image details, if any.")
|
|
26
|
+
}).describe("Response schema for uploading training images by URL.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { nanoNetsUploadTrainingImagesByUrl };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=upload-training-images-by-url.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.mjs","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUploadTrainingImagesByUrlInput: z.ZodTypeAny = z.object({\n urls: z.array(z.string()).describe(\"List of publicly accessible image URLs to upload for training.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the images will be uploaded.\"),\n}).describe(\"Request parameters for uploading training images by URL to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the successfully uploaded image.\"),\n upload_id: z.string().describe(\"Unique upload ID for the image.\"),\n}).describe(\"Details of a successfully uploaded image URL.\");\nconst NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the duplicate image.\"),\n upload_id: z.string().describe(\"Upload ID of the original image.\"),\n}).describe(\"Details of a duplicate image URL.\");\nexport const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodTypeAny = z.object({\n invalid: z.array(z.string()).describe(\"List of invalid URLs that could not be processed.\"),\n message: z.string().describe(\"Status message returned by the API.\"),\n uploaded: z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe(\"List of successfully uploaded image details.\"),\n duplicate: z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe(\"List of duplicate image details, if any.\"),\n}).describe(\"Response schema for uploading training images by URL.\");\n\nexport const nanoNetsUploadTrainingImagesByUrl = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL\", {\n slug: \"nano_nets-upload-training-images-by-url\",\n name: \"Upload Training Images by URL\",\n description: \"Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.\",\n input: NanoNetsUploadTrainingImagesByUrlInput,\n output: NanoNetsUploadTrainingImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO;CAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC1G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uDAAqE,EAAE,OAAO;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAClE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,wDAAsE,EAAE,OAAO;CACnF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAQ/C,MAAa,oCAAoC,OAAO,2CAA2C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZmE,EAAE,OAAO;EAC5E,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAClE,UAAU,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,8CAA8C;EAC/H,WAAW,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,0CAA0C;CAC/H,CAAC,CAAC,CAAC,SAAS,uDAOF;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 nanoNets = defineApp({\n slug: \"nano_nets\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,YAAA,uCAAA,CAAA,CAAA,UAAA,CAAqB;CAChC,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,QAAA,6BAAQ,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,QAAA,6BAAQ,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 nanoNets = defineApp({\n slug: \"nano_nets\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,WAAW,UAAU;CAChC,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 nanoNetsCatalog = {
|
|
4
|
+
"slug": "nano_nets",
|
|
5
|
+
"name": "Nanonets",
|
|
6
|
+
"description": "Nanonets provides an AI-driven Intelligent Document Processing API that transforms unstructured documents into structured data, enabling efficient data extraction and workflow automation.",
|
|
7
|
+
"category": "AI Document Extraction",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/nano_nets",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.nanoNetsCatalog = nanoNetsCatalog;
|
|
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 nanoNetsCatalog = {\n \"slug\": \"nano_nets\",\n \"name\": \"Nanonets\",\n \"description\": \"Nanonets provides an AI-driven Intelligent Document Processing API that transforms unstructured documents into structured data, enabling efficient data extraction and workflow automation.\",\n \"category\": \"AI Document Extraction\",\n \"logo\": \"https://logos.composio.dev/api/nano_nets\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,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 nanoNetsCatalog: {
|
|
4
|
+
readonly slug: "nano_nets";
|
|
5
|
+
readonly name: "Nanonets";
|
|
6
|
+
readonly description: "Nanonets provides an AI-driven Intelligent Document Processing API that transforms unstructured documents into structured data, enabling efficient data extraction and workflow automation.";
|
|
7
|
+
readonly category: "AI Document Extraction";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/nano_nets";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { nanoNetsCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const nanoNetsCatalog: {
|
|
4
|
+
readonly slug: "nano_nets";
|
|
5
|
+
readonly name: "Nanonets";
|
|
6
|
+
readonly description: "Nanonets provides an AI-driven Intelligent Document Processing API that transforms unstructured documents into structured data, enabling efficient data extraction and workflow automation.";
|
|
7
|
+
readonly category: "AI Document Extraction";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/nano_nets";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { nanoNetsCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;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 nanoNetsCatalog = {
|
|
4
|
+
"slug": "nano_nets",
|
|
5
|
+
"name": "Nanonets",
|
|
6
|
+
"description": "Nanonets provides an AI-driven Intelligent Document Processing API that transforms unstructured documents into structured data, enabling efficient data extraction and workflow automation.",
|
|
7
|
+
"category": "AI Document Extraction",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/nano_nets",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { nanoNetsCatalog };
|
|
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 nanoNetsCatalog = {\n \"slug\": \"nano_nets\",\n \"name\": \"Nanonets\",\n \"description\": \"Nanonets provides an AI-driven Intelligent Document Processing API that transforms unstructured documents into structured data, enabling efficient data extraction and workflow automation.\",\n \"category\": \"AI Document Extraction\",\n \"logo\": \"https://logos.composio.dev/api/nano_nets\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,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 = "nano_nets";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeNanoNetsTool(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.executeNanoNetsTool = executeNanoNetsTool;
|
|
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 = \"nano_nets\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeNanoNetsTool(\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,oBACpB,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 = "nano_nets";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeNanoNetsTool(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 { executeNanoNetsTool };
|
|
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 = \"nano_nets\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeNanoNetsTool(\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,oBACpB,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,28 @@
|
|
|
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_create_model = require("./actions/create-model.cjs");
|
|
5
|
+
const require_delete_model = require("./actions/delete-model.cjs");
|
|
6
|
+
const require_get_all_models = require("./actions/get-all-models.cjs");
|
|
7
|
+
const require_get_all_prediction_files = require("./actions/get-all-prediction-files.cjs");
|
|
8
|
+
const require_get_model_details = require("./actions/get-model-details.cjs");
|
|
9
|
+
const require_get_training_images = require("./actions/get-training-images.cjs");
|
|
10
|
+
const require_get_workflows = require("./actions/get-workflows.cjs");
|
|
11
|
+
const require_list_documents = require("./actions/list-documents.cjs");
|
|
12
|
+
const require_update_model = require("./actions/update-model.cjs");
|
|
13
|
+
const require_upload_training_images_by_file = require("./actions/upload-training-images-by-file.cjs");
|
|
14
|
+
const require_upload_training_images_by_url = require("./actions/upload-training-images-by-url.cjs");
|
|
15
|
+
require("./actions/index.cjs");
|
|
16
|
+
exports.nanoNets = require_app.nanoNets;
|
|
17
|
+
exports.nanoNetsCatalog = require_catalog.nanoNetsCatalog;
|
|
18
|
+
exports.nanoNetsCreateModel = require_create_model.nanoNetsCreateModel;
|
|
19
|
+
exports.nanoNetsDeleteModel = require_delete_model.nanoNetsDeleteModel;
|
|
20
|
+
exports.nanoNetsGetAllModels = require_get_all_models.nanoNetsGetAllModels;
|
|
21
|
+
exports.nanoNetsGetAllPredictionFiles = require_get_all_prediction_files.nanoNetsGetAllPredictionFiles;
|
|
22
|
+
exports.nanoNetsGetModelDetails = require_get_model_details.nanoNetsGetModelDetails;
|
|
23
|
+
exports.nanoNetsGetTrainingImages = require_get_training_images.nanoNetsGetTrainingImages;
|
|
24
|
+
exports.nanoNetsGetWorkflows = require_get_workflows.nanoNetsGetWorkflows;
|
|
25
|
+
exports.nanoNetsListDocuments = require_list_documents.nanoNetsListDocuments;
|
|
26
|
+
exports.nanoNetsUpdateModel = require_update_model.nanoNetsUpdateModel;
|
|
27
|
+
exports.nanoNetsUploadTrainingImagesByFile = require_upload_training_images_by_file.nanoNetsUploadTrainingImagesByFile;
|
|
28
|
+
exports.nanoNetsUploadTrainingImagesByUrl = require_upload_training_images_by_url.nanoNetsUploadTrainingImagesByUrl;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { nanoNetsCreateModel } from "./actions/create-model.cjs";
|
|
2
|
+
import { nanoNetsDeleteModel } from "./actions/delete-model.cjs";
|
|
3
|
+
import { nanoNetsGetAllModels } from "./actions/get-all-models.cjs";
|
|
4
|
+
import { nanoNetsGetAllPredictionFiles } from "./actions/get-all-prediction-files.cjs";
|
|
5
|
+
import { nanoNetsGetModelDetails } from "./actions/get-model-details.cjs";
|
|
6
|
+
import { nanoNetsGetTrainingImages } from "./actions/get-training-images.cjs";
|
|
7
|
+
import { nanoNetsGetWorkflows } from "./actions/get-workflows.cjs";
|
|
8
|
+
import { nanoNetsListDocuments } from "./actions/list-documents.cjs";
|
|
9
|
+
import { nanoNetsUpdateModel } from "./actions/update-model.cjs";
|
|
10
|
+
import { nanoNetsUploadTrainingImagesByFile } from "./actions/upload-training-images-by-file.cjs";
|
|
11
|
+
import { nanoNetsUploadTrainingImagesByUrl } from "./actions/upload-training-images-by-url.cjs";
|
|
12
|
+
import { nanoNets } from "./app.cjs";
|
|
13
|
+
import { nanoNetsCatalog } from "./catalog.cjs";
|
|
14
|
+
export { nanoNets, nanoNetsCatalog, nanoNetsCreateModel, nanoNetsDeleteModel, nanoNetsGetAllModels, nanoNetsGetAllPredictionFiles, nanoNetsGetModelDetails, nanoNetsGetTrainingImages, nanoNetsGetWorkflows, nanoNetsListDocuments, nanoNetsUpdateModel, nanoNetsUploadTrainingImagesByFile, nanoNetsUploadTrainingImagesByUrl };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { nanoNetsCreateModel } from "./actions/create-model.mjs";
|
|
2
|
+
import { nanoNetsDeleteModel } from "./actions/delete-model.mjs";
|
|
3
|
+
import { nanoNetsGetAllModels } from "./actions/get-all-models.mjs";
|
|
4
|
+
import { nanoNetsGetAllPredictionFiles } from "./actions/get-all-prediction-files.mjs";
|
|
5
|
+
import { nanoNetsGetModelDetails } from "./actions/get-model-details.mjs";
|
|
6
|
+
import { nanoNetsGetTrainingImages } from "./actions/get-training-images.mjs";
|
|
7
|
+
import { nanoNetsGetWorkflows } from "./actions/get-workflows.mjs";
|
|
8
|
+
import { nanoNetsListDocuments } from "./actions/list-documents.mjs";
|
|
9
|
+
import { nanoNetsUpdateModel } from "./actions/update-model.mjs";
|
|
10
|
+
import { nanoNetsUploadTrainingImagesByFile } from "./actions/upload-training-images-by-file.mjs";
|
|
11
|
+
import { nanoNetsUploadTrainingImagesByUrl } from "./actions/upload-training-images-by-url.mjs";
|
|
12
|
+
import { nanoNets } from "./app.mjs";
|
|
13
|
+
import { nanoNetsCatalog } from "./catalog.mjs";
|
|
14
|
+
export { nanoNets, nanoNetsCatalog, nanoNetsCreateModel, nanoNetsDeleteModel, nanoNetsGetAllModels, nanoNetsGetAllPredictionFiles, nanoNetsGetModelDetails, nanoNetsGetTrainingImages, nanoNetsGetWorkflows, nanoNetsListDocuments, nanoNetsUpdateModel, nanoNetsUploadTrainingImagesByFile, nanoNetsUploadTrainingImagesByUrl };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { nanoNets } from "./app.mjs";
|
|
2
|
+
import { nanoNetsCatalog } from "./catalog.mjs";
|
|
3
|
+
import { nanoNetsCreateModel } from "./actions/create-model.mjs";
|
|
4
|
+
import { nanoNetsDeleteModel } from "./actions/delete-model.mjs";
|
|
5
|
+
import { nanoNetsGetAllModels } from "./actions/get-all-models.mjs";
|
|
6
|
+
import { nanoNetsGetAllPredictionFiles } from "./actions/get-all-prediction-files.mjs";
|
|
7
|
+
import { nanoNetsGetModelDetails } from "./actions/get-model-details.mjs";
|
|
8
|
+
import { nanoNetsGetTrainingImages } from "./actions/get-training-images.mjs";
|
|
9
|
+
import { nanoNetsGetWorkflows } from "./actions/get-workflows.mjs";
|
|
10
|
+
import { nanoNetsListDocuments } from "./actions/list-documents.mjs";
|
|
11
|
+
import { nanoNetsUpdateModel } from "./actions/update-model.mjs";
|
|
12
|
+
import { nanoNetsUploadTrainingImagesByFile } from "./actions/upload-training-images-by-file.mjs";
|
|
13
|
+
import { nanoNetsUploadTrainingImagesByUrl } from "./actions/upload-training-images-by-url.mjs";
|
|
14
|
+
import "./actions/index.mjs";
|
|
15
|
+
export { nanoNets, nanoNetsCatalog, nanoNetsCreateModel, nanoNetsDeleteModel, nanoNetsGetAllModels, nanoNetsGetAllPredictionFiles, nanoNetsGetModelDetails, nanoNetsGetTrainingImages, nanoNetsGetWorkflows, nanoNetsListDocuments, nanoNetsUpdateModel, nanoNetsUploadTrainingImagesByFile, nanoNetsUploadTrainingImagesByUrl };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/nano_nets",
|
|
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/nano_nets"
|
|
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
|
+
}
|