@keystrokehq/nano_nets 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-model.cjs +1 -0
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +3 -3
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +3 -3
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +1 -0
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/delete-model.cjs +1 -0
- package/dist/actions/delete-model.cjs.map +1 -1
- package/dist/actions/delete-model.d.cts +3 -3
- package/dist/actions/delete-model.d.cts.map +1 -1
- package/dist/actions/delete-model.d.mts +3 -3
- package/dist/actions/delete-model.d.mts.map +1 -1
- package/dist/actions/delete-model.mjs +1 -0
- package/dist/actions/delete-model.mjs.map +1 -1
- package/dist/actions/get-all-models.cjs +1 -0
- package/dist/actions/get-all-models.cjs.map +1 -1
- package/dist/actions/get-all-models.d.cts +3 -1
- package/dist/actions/get-all-models.d.cts.map +1 -1
- package/dist/actions/get-all-models.d.mts +3 -1
- package/dist/actions/get-all-models.d.mts.map +1 -1
- package/dist/actions/get-all-models.mjs +1 -0
- package/dist/actions/get-all-models.mjs.map +1 -1
- package/dist/actions/get-all-prediction-files.cjs +1 -0
- package/dist/actions/get-all-prediction-files.cjs.map +1 -1
- package/dist/actions/get-all-prediction-files.d.cts +3 -5
- package/dist/actions/get-all-prediction-files.d.cts.map +1 -1
- package/dist/actions/get-all-prediction-files.d.mts +3 -5
- package/dist/actions/get-all-prediction-files.d.mts.map +1 -1
- package/dist/actions/get-all-prediction-files.mjs +1 -0
- package/dist/actions/get-all-prediction-files.mjs.map +1 -1
- package/dist/actions/get-model-details.cjs +1 -0
- package/dist/actions/get-model-details.cjs.map +1 -1
- package/dist/actions/get-model-details.d.cts +3 -3
- package/dist/actions/get-model-details.d.cts.map +1 -1
- package/dist/actions/get-model-details.d.mts +3 -3
- package/dist/actions/get-model-details.d.mts.map +1 -1
- package/dist/actions/get-model-details.mjs +1 -0
- package/dist/actions/get-model-details.mjs.map +1 -1
- package/dist/actions/get-training-images.cjs +1 -0
- package/dist/actions/get-training-images.cjs.map +1 -1
- package/dist/actions/get-training-images.d.cts +3 -5
- package/dist/actions/get-training-images.d.cts.map +1 -1
- package/dist/actions/get-training-images.d.mts +3 -5
- package/dist/actions/get-training-images.d.mts.map +1 -1
- package/dist/actions/get-training-images.mjs +1 -0
- package/dist/actions/get-training-images.mjs.map +1 -1
- package/dist/actions/get-workflows.cjs +1 -0
- package/dist/actions/get-workflows.cjs.map +1 -1
- package/dist/actions/get-workflows.d.cts +3 -1
- package/dist/actions/get-workflows.d.cts.map +1 -1
- package/dist/actions/get-workflows.d.mts +3 -1
- package/dist/actions/get-workflows.d.mts.map +1 -1
- package/dist/actions/get-workflows.mjs +1 -0
- package/dist/actions/get-workflows.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +1 -0
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +3 -5
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +3 -5
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs +1 -0
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/update-model.cjs +1 -0
- package/dist/actions/update-model.cjs.map +1 -1
- package/dist/actions/update-model.d.cts +3 -5
- package/dist/actions/update-model.d.cts.map +1 -1
- package/dist/actions/update-model.d.mts +3 -5
- package/dist/actions/update-model.d.mts.map +1 -1
- package/dist/actions/update-model.mjs +1 -0
- package/dist/actions/update-model.mjs.map +1 -1
- package/dist/actions/upload-training-images-by-file.cjs +1 -0
- package/dist/actions/upload-training-images-by-file.cjs.map +1 -1
- package/dist/actions/upload-training-images-by-file.d.cts +3 -8
- package/dist/actions/upload-training-images-by-file.d.cts.map +1 -1
- package/dist/actions/upload-training-images-by-file.d.mts +3 -8
- package/dist/actions/upload-training-images-by-file.d.mts.map +1 -1
- package/dist/actions/upload-training-images-by-file.mjs +1 -0
- package/dist/actions/upload-training-images-by-file.mjs.map +1 -1
- package/dist/actions/upload-training-images-by-url.cjs +1 -0
- package/dist/actions/upload-training-images-by-url.cjs.map +1 -1
- package/dist/actions/upload-training-images-by-url.d.cts +3 -4
- package/dist/actions/upload-training-images-by-url.d.cts.map +1 -1
- package/dist/actions/upload-training-images-by-url.d.mts +3 -4
- package/dist/actions/upload-training-images-by-url.d.mts.map +1 -1
- package/dist/actions/upload-training-images-by-url.mjs +1 -0
- package/dist/actions/upload-training-images-by-url.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\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\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = 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\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-training-images.cjs","names":["z","action"],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetTrainingImagesInput = 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.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\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\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = 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\").nullable(),\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}).passthrough().describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages: AppAction<\n typeof NanoNetsGetTrainingImagesInput,\n typeof NanoNetsGetTrainingImagesOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,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,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,MAAMA,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,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,4BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-training-images.d.ts
|
|
@@ -19,11 +21,7 @@ declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const nanoNetsGetTrainingImages:
|
|
23
|
-
model_id: string;
|
|
24
|
-
page?: number | undefined;
|
|
25
|
-
page_size?: number | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const nanoNetsGetTrainingImages: AppAction<typeof NanoNetsGetTrainingImagesInput, typeof NanoNetsGetTrainingImagesOutput, typeof nanoNets.credential>;
|
|
27
25
|
//#endregion
|
|
28
26
|
export { nanoNetsGetTrainingImages };
|
|
29
27
|
//# sourceMappingURL=get-training-images.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-training-images.d.cts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-training-images.d.cts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-training-images.d.ts
|
|
@@ -19,11 +21,7 @@ declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const nanoNetsGetTrainingImages:
|
|
23
|
-
model_id: string;
|
|
24
|
-
page?: number | undefined;
|
|
25
|
-
page_size?: number | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const nanoNetsGetTrainingImages: AppAction<typeof NanoNetsGetTrainingImagesInput, typeof NanoNetsGetTrainingImagesOutput, typeof nanoNets.credential>;
|
|
27
25
|
//#endregion
|
|
28
26
|
export { nanoNetsGetTrainingImages };
|
|
29
27
|
//# sourceMappingURL=get-training-images.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-training-images.d.mts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-training-images.d.mts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\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\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = 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\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-training-images.mjs","names":[],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetTrainingImagesInput = 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.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\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\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = 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\").nullable(),\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}).passthrough().describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages: AppAction<\n typeof NanoNetsGetTrainingImagesInput,\n typeof NanoNetsGetTrainingImagesOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,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,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC5D,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,CAAC,CAAC,SAAS;CACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAQxE,MAAa,4BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC7E,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,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
|
|
@@ -1 +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.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\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.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-workflows.cjs","names":["z","action"],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetWorkflowsInput = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\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.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows: AppAction<\n typeof NanoNetsGetWorkflowsInput,\n typeof NanoNetsGetWorkflowsOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC1G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,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,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-workflows.d.ts
|
|
@@ -10,7 +12,7 @@ declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
|
|
|
10
12
|
description: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const nanoNetsGetWorkflows:
|
|
15
|
+
declare const nanoNetsGetWorkflows: AppAction<typeof NanoNetsGetWorkflowsInput, typeof NanoNetsGetWorkflowsOutput, typeof nanoNets.credential>;
|
|
14
16
|
//#endregion
|
|
15
17
|
export { nanoNetsGetWorkflows };
|
|
16
18
|
//# sourceMappingURL=get-workflows.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-workflows.d.ts
|
|
@@ -10,7 +12,7 @@ declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
|
|
|
10
12
|
description: z.ZodNullable<z.ZodString>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const nanoNetsGetWorkflows:
|
|
15
|
+
declare const nanoNetsGetWorkflows: AppAction<typeof NanoNetsGetWorkflowsInput, typeof NanoNetsGetWorkflowsOutput, typeof nanoNets.credential>;
|
|
14
16
|
//#endregion
|
|
15
17
|
export { nanoNetsGetWorkflows };
|
|
16
18
|
//# sourceMappingURL=get-workflows.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +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.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\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.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-workflows.mjs","names":[],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetWorkflowsInput = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\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.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows: AppAction<\n typeof NanoNetsGetWorkflowsInput,\n typeof NanoNetsGetWorkflowsOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC1G,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,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,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAKrE,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,WAAW,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.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.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\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).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = 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').\").nullable(),\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.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\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.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsListDocumentsInput = 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.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.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\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).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = 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').\").nullable(),\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.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\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.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments: AppAction<\n typeof NanoNetsListDocumentsInput,\n typeof NanoNetsListDocumentsOutput,\n typeof nanoNets.credential\n> = 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":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-documents.d.ts
|
|
@@ -31,11 +33,7 @@ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
|
|
|
31
33
|
page_size: z.ZodNullable<z.ZodNumber>;
|
|
32
34
|
total_count: z.ZodNullable<z.ZodNumber>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const nanoNetsListDocuments:
|
|
35
|
-
workflow_id: string;
|
|
36
|
-
page?: number | undefined;
|
|
37
|
-
limit?: number | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
36
|
+
declare const nanoNetsListDocuments: AppAction<typeof NanoNetsListDocumentsInput, typeof NanoNetsListDocumentsOutput, typeof nanoNets.credential>;
|
|
39
37
|
//#endregion
|
|
40
38
|
export { nanoNetsListDocuments };
|
|
41
39
|
//# sourceMappingURL=list-documents.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-documents.d.ts
|
|
@@ -31,11 +33,7 @@ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
|
|
|
31
33
|
page_size: z.ZodNullable<z.ZodNumber>;
|
|
32
34
|
total_count: z.ZodNullable<z.ZodNumber>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const nanoNetsListDocuments:
|
|
35
|
-
workflow_id: string;
|
|
36
|
-
page?: number | undefined;
|
|
37
|
-
limit?: number | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
36
|
+
declare const nanoNetsListDocuments: AppAction<typeof NanoNetsListDocumentsInput, typeof NanoNetsListDocumentsOutput, typeof nanoNets.credential>;
|
|
39
37
|
//#endregion
|
|
40
38
|
export { nanoNetsListDocuments };
|
|
41
39
|
//# sourceMappingURL=list-documents.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +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.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.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.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\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).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = 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').\").nullable(),\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.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\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.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsListDocumentsInput = 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.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.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\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).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = 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').\").nullable(),\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.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\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.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\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.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments: AppAction<\n typeof NanoNetsListDocumentsInput,\n typeof NanoNetsListDocumentsOutput,\n typeof nanoNets.credential\n> = 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":"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"}
|
|
@@ -1 +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.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.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":"
|
|
1
|
+
{"version":3,"file":"update-model.cjs","names":["z","action"],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsUpdateModelInput = 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.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: AppAction<\n typeof NanoNetsUpdateModelInput,\n typeof NanoNetsUpdateModelOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,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,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-model.d.ts
|
|
@@ -10,11 +12,7 @@ declare const NanoNetsUpdateModelOutput: z.ZodObject<{
|
|
|
10
12
|
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const nanoNetsUpdateModel:
|
|
14
|
-
model_id: string;
|
|
15
|
-
field_instructions: string;
|
|
16
|
-
table_instructions: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const nanoNetsUpdateModel: AppAction<typeof NanoNetsUpdateModelInput, typeof NanoNetsUpdateModelOutput, typeof nanoNets.credential>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { nanoNetsUpdateModel };
|
|
20
18
|
//# sourceMappingURL=update-model.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-model.d.ts
|
|
@@ -10,11 +12,7 @@ declare const NanoNetsUpdateModelOutput: z.ZodObject<{
|
|
|
10
12
|
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const nanoNetsUpdateModel:
|
|
14
|
-
model_id: string;
|
|
15
|
-
field_instructions: string;
|
|
16
|
-
table_instructions: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const nanoNetsUpdateModel: AppAction<typeof NanoNetsUpdateModelInput, typeof NanoNetsUpdateModelOutput, typeof nanoNets.credential>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { nanoNetsUpdateModel };
|
|
20
18
|
//# sourceMappingURL=update-model.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +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.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.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":"
|
|
1
|
+
{"version":3,"file":"update-model.mjs","names":[],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsUpdateModelInput = 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.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: AppAction<\n typeof NanoNetsUpdateModelInput,\n typeof NanoNetsUpdateModelOutput,\n typeof nanoNets.credential\n> = 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":";;;AAgBA,MAAa,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO;EAC/C,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,0GAcH;CACP,QAduC,EAAE,OAAO;EAChD,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,qDAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category.\").nullable(),\n count: z.number().int().describe(\"Number of images in this category.\").nullable(),\n}).passthrough().describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput = z.object({\n state: z.number().int().describe(\"Current state code of the model.\").nullable(),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\").nullable(),\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').\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.cjs","names":["z","action"],"sources":["../../src/actions/upload-training-images-by-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsUploadTrainingImagesByFileInput = 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.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category.\").nullable(),\n count: z.number().int().describe(\"Number of images in this category.\").nullable(),\n}).passthrough().describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput = z.object({\n state: z.number().int().describe(\"Current state code of the model.\").nullable(),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\").nullable(),\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').\").nullable(),\n}).passthrough().describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile: AppAction<\n typeof NanoNetsUploadTrainingImagesByFileInput,\n typeof NanoNetsUploadTrainingImagesByFileOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qCAITC,eAAAA,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upload-training-images-by-file.d.ts
|
|
@@ -19,14 +21,7 @@ declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
model_type: z.ZodNullable<z.ZodString>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const nanoNetsUploadTrainingImagesByFile:
|
|
23
|
-
file: {
|
|
24
|
-
name: string;
|
|
25
|
-
s3key: string;
|
|
26
|
-
mimetype: string;
|
|
27
|
-
};
|
|
28
|
-
model_id: string;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const nanoNetsUploadTrainingImagesByFile: AppAction<typeof NanoNetsUploadTrainingImagesByFileInput, typeof NanoNetsUploadTrainingImagesByFileOutput, typeof nanoNets.credential>;
|
|
30
25
|
//#endregion
|
|
31
26
|
export { nanoNetsUploadTrainingImagesByFile };
|
|
32
27
|
//# sourceMappingURL=upload-training-images-by-file.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-training-images-by-file.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAavC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAOxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upload-training-images-by-file.d.ts
|
|
@@ -19,14 +21,7 @@ declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
model_type: z.ZodNullable<z.ZodString>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const nanoNetsUploadTrainingImagesByFile:
|
|
23
|
-
file: {
|
|
24
|
-
name: string;
|
|
25
|
-
s3key: string;
|
|
26
|
-
mimetype: string;
|
|
27
|
-
};
|
|
28
|
-
model_id: string;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const nanoNetsUploadTrainingImagesByFile: AppAction<typeof NanoNetsUploadTrainingImagesByFileInput, typeof NanoNetsUploadTrainingImagesByFileOutput, typeof nanoNets.credential>;
|
|
30
25
|
//#endregion
|
|
31
26
|
export { nanoNetsUploadTrainingImagesByFile };
|
|
32
27
|
//# sourceMappingURL=upload-training-images-by-file.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-training-images-by-file.d.mts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.d.mts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAavC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAOxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category.\").nullable(),\n count: z.number().int().describe(\"Number of images in this category.\").nullable(),\n}).passthrough().describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput = z.object({\n state: z.number().int().describe(\"Current state code of the model.\").nullable(),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\").nullable(),\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').\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-file.mjs","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsUploadTrainingImagesByFileInput = 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.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category.\").nullable(),\n count: z.number().int().describe(\"Number of images in this category.\").nullable(),\n}).passthrough().describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput = z.object({\n state: z.number().int().describe(\"Current state code of the model.\").nullable(),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\").nullable(),\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').\").nullable(),\n}).passthrough().describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile: AppAction<\n typeof NanoNetsUploadTrainingImagesByFileInput,\n typeof NanoNetsUploadTrainingImagesByFileOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,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,wDAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAQtE,MAAa,qCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsD,EAAE,OAAO;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACpG,YAAY,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n url: z.string().describe(\"URL of the successfully uploaded image.\").nullable(),\n upload_id: z.string().describe(\"Unique upload ID for the image.\").nullable(),\n}).passthrough().describe(\"Details of a successfully uploaded image URL.\");\nconst NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = z.object({\n url: z.string().describe(\"URL of the duplicate image.\").nullable(),\n upload_id: z.string().describe(\"Upload ID of the original image.\").nullable(),\n}).passthrough().describe(\"Details of a duplicate image URL.\");\nexport const NanoNetsUploadTrainingImagesByUrlOutput = 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.\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.cjs","names":["z","action"],"sources":["../../src/actions/upload-training-images-by-url.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsUploadTrainingImagesByUrlInput = 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.object({\n url: z.string().describe(\"URL of the successfully uploaded image.\").nullable(),\n upload_id: z.string().describe(\"Unique upload ID for the image.\").nullable(),\n}).passthrough().describe(\"Details of a successfully uploaded image URL.\");\nconst NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = z.object({\n url: z.string().describe(\"URL of the duplicate image.\").nullable(),\n upload_id: z.string().describe(\"Upload ID of the original image.\").nullable(),\n}).passthrough().describe(\"Details of a duplicate image URL.\");\nexport const NanoNetsUploadTrainingImagesByUrlOutput = 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.\").nullable(),\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}).passthrough().describe(\"Response schema for uploading training images by URL.\");\n\nexport const nanoNetsUploadTrainingImagesByUrl: AppAction<\n typeof NanoNetsUploadTrainingImagesByUrlInput,\n typeof NanoNetsUploadTrainingImagesByUrlOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,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,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,oCAITC,eAAAA,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nanoNets } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upload-training-images-by-url.d.ts
|
|
@@ -17,10 +19,7 @@ declare const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodObject<{
|
|
|
17
19
|
upload_id: z.ZodNullable<z.ZodString>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const nanoNetsUploadTrainingImagesByUrl:
|
|
21
|
-
urls: string[];
|
|
22
|
-
model_id: string;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const nanoNetsUploadTrainingImagesByUrl: AppAction<typeof NanoNetsUploadTrainingImagesByUrlInput, typeof NanoNetsUploadTrainingImagesByUrlOutput, typeof nanoNets.credential>;
|
|
24
23
|
//#endregion
|
|
25
24
|
export { nanoNetsUploadTrainingImagesByUrl };
|
|
26
25
|
//# sourceMappingURL=upload-training-images-by-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-training-images-by-url.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAYtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,QAAA,CAAS,UAAA"}
|