@keystrokehq/nano_nets 0.1.0 → 0.1.2
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 +5 -5
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +19 -3
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +19 -3
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +5 -5
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/delete-model.cjs +1 -1
- package/dist/actions/delete-model.cjs.map +1 -1
- package/dist/actions/delete-model.d.cts +10 -3
- package/dist/actions/delete-model.d.cts.map +1 -1
- package/dist/actions/delete-model.d.mts +10 -3
- package/dist/actions/delete-model.d.mts.map +1 -1
- package/dist/actions/delete-model.mjs +1 -1
- package/dist/actions/delete-model.mjs.map +1 -1
- package/dist/actions/get-all-models.cjs +5 -5
- package/dist/actions/get-all-models.cjs.map +1 -1
- package/dist/actions/get-all-models.d.cts +22 -3
- package/dist/actions/get-all-models.d.cts.map +1 -1
- package/dist/actions/get-all-models.d.mts +22 -3
- package/dist/actions/get-all-models.d.mts.map +1 -1
- package/dist/actions/get-all-models.mjs +5 -5
- package/dist/actions/get-all-models.mjs.map +1 -1
- package/dist/actions/get-all-prediction-files.cjs.map +1 -1
- package/dist/actions/get-all-prediction-files.d.cts +35 -3
- package/dist/actions/get-all-prediction-files.d.cts.map +1 -1
- package/dist/actions/get-all-prediction-files.d.mts +35 -3
- package/dist/actions/get-all-prediction-files.d.mts.map +1 -1
- package/dist/actions/get-all-prediction-files.mjs.map +1 -1
- package/dist/actions/get-model-details.cjs +5 -5
- package/dist/actions/get-model-details.cjs.map +1 -1
- package/dist/actions/get-model-details.d.cts +24 -3
- package/dist/actions/get-model-details.d.cts.map +1 -1
- package/dist/actions/get-model-details.d.mts +24 -3
- package/dist/actions/get-model-details.d.mts.map +1 -1
- package/dist/actions/get-model-details.mjs +5 -5
- package/dist/actions/get-model-details.mjs.map +1 -1
- package/dist/actions/get-training-images.cjs +7 -7
- package/dist/actions/get-training-images.cjs.map +1 -1
- package/dist/actions/get-training-images.d.cts +23 -3
- package/dist/actions/get-training-images.d.cts.map +1 -1
- package/dist/actions/get-training-images.d.mts +23 -3
- package/dist/actions/get-training-images.d.mts.map +1 -1
- package/dist/actions/get-training-images.mjs +7 -7
- package/dist/actions/get-training-images.mjs.map +1 -1
- package/dist/actions/get-workflows.cjs +3 -3
- package/dist/actions/get-workflows.cjs.map +1 -1
- package/dist/actions/get-workflows.d.cts +10 -3
- package/dist/actions/get-workflows.d.cts.map +1 -1
- package/dist/actions/get-workflows.d.mts +10 -3
- package/dist/actions/get-workflows.d.mts.map +1 -1
- package/dist/actions/get-workflows.mjs +3 -3
- package/dist/actions/get-workflows.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +8 -8
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +35 -3
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +35 -3
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs +8 -8
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/update-model.cjs.map +1 -1
- package/dist/actions/update-model.d.cts +14 -3
- package/dist/actions/update-model.d.cts.map +1 -1
- package/dist/actions/update-model.d.mts +14 -3
- package/dist/actions/update-model.d.mts.map +1 -1
- package/dist/actions/update-model.mjs.map +1 -1
- package/dist/actions/upload-training-images-by-file.cjs +6 -6
- package/dist/actions/upload-training-images-by-file.cjs.map +1 -1
- package/dist/actions/upload-training-images-by-file.d.cts +26 -3
- package/dist/actions/upload-training-images-by-file.d.cts.map +1 -1
- package/dist/actions/upload-training-images-by-file.d.mts +26 -3
- package/dist/actions/upload-training-images-by-file.d.mts.map +1 -1
- package/dist/actions/upload-training-images-by-file.mjs +6 -6
- package/dist/actions/upload-training-images-by-file.mjs.map +1 -1
- package/dist/actions/upload-training-images-by-url.cjs +5 -5
- package/dist/actions/upload-training-images-by-url.cjs.map +1 -1
- package/dist/actions/upload-training-images-by-url.d.cts +20 -3
- package/dist/actions/upload-training-images-by-url.d.cts.map +1 -1
- package/dist/actions/upload-training-images-by-url.d.mts +20 -3
- package/dist/actions/upload-training-images-by-url.d.mts.map +1 -1
- package/dist/actions/upload-training-images-by-url.mjs +5 -5
- package/dist/actions/upload-training-images-by-url.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-prediction-files.d.ts
|
|
4
|
-
declare const NanoNetsGetAllPredictionFilesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NanoNetsGetAllPredictionFilesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
model_id: z.ZodString;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NanoNetsGetAllPredictionFilesOutput: z.ZodObject<{
|
|
10
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
12
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
14
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
15
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
16
|
+
file_url: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
17
|
+
prediction: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
19
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
20
|
+
xmax: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
21
|
+
xmin: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
22
|
+
ymax: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
23
|
+
ymin: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
24
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
25
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
26
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
27
|
+
ocr_text: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
|
+
request_file_id: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
30
|
+
original_file_url: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
31
|
+
}, z.core.$loose>>>>;
|
|
32
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const nanoNetsGetAllPredictionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
|
+
model_id: string;
|
|
36
|
+
page?: number | undefined;
|
|
37
|
+
page_size?: number | undefined;
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { nanoNetsGetAllPredictionFiles };
|
|
9
41
|
//# sourceMappingURL=get-all-prediction-files.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-prediction-files.d.mts","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-all-prediction-files.d.mts","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-prediction-files.mjs","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllPredictionFilesInput
|
|
1
|
+
{"version":3,"file":"get-all-prediction-files.mjs","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllPredictionFilesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (must be >= 1)\").optional(),\n model_id: z.string().describe(\"Unique identifier of the NanoNets OCR model to fetch prediction files from\"),\n page_size: z.number().int().default(50).describe(\"Number of prediction files per page (1-500)\").optional(),\n}).describe(\"Request parameters for fetching all prediction files (inference results) from a NanoNets OCR model.\");\nconst NanoNetsGetAllPredictionFiles_PredictionLabelSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction\").nullable().optional(),\n type: z.string().default(\"field\").describe(\"Type of prediction ('field' or 'table')\").nullable().optional(),\n xmax: z.number().int().default(0).describe(\"Right x-coordinate of bounding box\").nullable().optional(),\n xmin: z.number().int().default(0).describe(\"Left x-coordinate of bounding box\").nullable().optional(),\n ymax: z.number().int().default(0).describe(\"Bottom y-coordinate of bounding box\").nullable().optional(),\n ymin: z.number().int().default(0).describe(\"Top y-coordinate of bounding box\").nullable().optional(),\n label: z.string().default(\"\").describe(\"Label/category name of the predicted field\").nullable().optional(),\n score: z.number().default(0).describe(\"Confidence score of the prediction (0-1)\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Verification status\").nullable().optional(),\n ocr_text: z.string().default(\"\").describe(\"Extracted text from OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents a predicted label with OCR extraction details.\");\nconst NanoNetsGetAllPredictionFiles_PredictionFileSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction file\").nullable().optional(),\n page: z.number().int().default(0).describe(\"Page number within the document\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Processing status of the file\").nullable().optional(),\n file_url: z.string().default(\"\").describe(\"URL of the processed file/image\").nullable().optional(),\n prediction: z.array(NanoNetsGetAllPredictionFiles_PredictionLabelSchema).describe(\"List of predicted labels with extracted OCR data\").nullable().optional(),\n request_file_id: z.string().default(\"\").describe(\"Request file ID for reference\").nullable().optional(),\n original_file_url: z.string().default(\"\").describe(\"URL of the original uploaded file\").nullable().optional(),\n}).passthrough().describe(\"Represents a single prediction file with its OCR results.\");\nexport const NanoNetsGetAllPredictionFilesOutput = z.object({\n next: z.string().describe(\"URL for the next page of results (if available)\").nullable().optional(),\n count: z.number().int().default(0).describe(\"Total number of prediction files available\").nullable().optional(),\n result: z.array(NanoNetsGetAllPredictionFiles_PredictionFileSchema).describe(\"List of prediction files with their OCR results\").nullable().optional(),\n previous: z.string().describe(\"URL for the previous page of results (if available)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all prediction files for the model.\");\n\nexport const nanoNetsGetAllPredictionFiles = action(\"NANO_NETS_GET_ALL_PREDICTION_FILES\", {\n slug: \"nano_nets-get-all-prediction-files\",\n name: \"Get All Prediction Files\",\n description: \"Retrieve all prediction files (OCR results) for a NanoNets model. Use this tool to: - List all documents/images that have been processed by an OCR model - Get prediction results including extracted text and field values - Access file URLs and processing status for each prediction The response includes prediction labels with extracted text, confidence scores, and bounding box coordinates for each processed file.\",\n input: NanoNetsGetAllPredictionFilesInput,\n output: NanoNetsGetAllPredictionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjH,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,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kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,mBAAmB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAQrF,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,QAAQ,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
@@ -3,23 +3,23 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-model-details.ts
|
|
4
4
|
const NanoNetsGetModelDetailsInput = zod.z.object({ model_id: zod.z.string().describe("Unique identifier of the OCR model to retrieve details.") }).describe("Request parameters for retrieving OCR model details.");
|
|
5
5
|
const NanoNetsGetModelDetails_CategoryInfoSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier for the category."),
|
|
7
|
-
name: zod.z.string().describe("Name of the category/field."),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the category.").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the category/field.").nullable(),
|
|
8
8
|
count: zod.z.number().int().describe("Count of training examples for this category.").nullable().optional(),
|
|
9
9
|
data_type: zod.z.string().describe("Data type of the category.").nullable().optional(),
|
|
10
10
|
description: zod.z.string().describe("Description of the category.").nullable().optional()
|
|
11
11
|
}).passthrough().describe("Schema for a category/field associated with a model.");
|
|
12
12
|
const NanoNetsGetModelDetailsOutput = zod.z.object({
|
|
13
13
|
email: zod.z.string().describe("Email address associated with the model for uploads.").nullable().optional(),
|
|
14
|
-
state: zod.z.number().int().describe("Current model state as integer (e.g., 5 for 'Model hosted')."),
|
|
14
|
+
state: zod.z.number().int().describe("Current model state as integer (e.g., 5 for 'Model hosted').").nullable(),
|
|
15
15
|
status: zod.z.string().describe("Human-readable status of the model (e.g., 'Model hosted').").nullable().optional(),
|
|
16
16
|
is_paid: zod.z.boolean().describe("Whether this is a paid model.").nullable().optional(),
|
|
17
17
|
accuracy: zod.z.number().describe("Model accuracy percentage (0-100).").nullable().optional(),
|
|
18
|
-
model_id: zod.z.string().describe("Unique identifier of the model."),
|
|
18
|
+
model_id: zod.z.string().describe("Unique identifier of the model.").nullable(),
|
|
19
19
|
is_public: zod.z.boolean().describe("Whether the model is publicly accessible.").nullable().optional(),
|
|
20
20
|
categories: zod.z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe("List of categories/fields that this model can extract.").nullable().optional(),
|
|
21
21
|
is_deleted: zod.z.boolean().describe("Whether the model has been deleted.").nullable().optional(),
|
|
22
|
-
model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').")
|
|
22
|
+
model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
23
23
|
}).passthrough().describe("Response schema for OCR model details.\nContains comprehensive model information including ID, type, status, categories, and metadata.");
|
|
24
24
|
const nanoNetsGetModelDetails = require_action.action("NANO_NETS_GET_MODEL_DETAILS", {
|
|
25
25
|
slug: "nano_nets-get-model-details",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-model-details.cjs","names":["z","action"],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput
|
|
1
|
+
{"version":3,"file":"get-model-details.cjs","names":["z","action"],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\").nullable(),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAElK,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-model-details.d.ts
|
|
4
|
-
declare const NanoNetsGetModelDetailsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NanoNetsGetModelDetailsInput: z.ZodObject<{
|
|
5
|
+
model_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NanoNetsGetModelDetailsOutput: z.ZodObject<{
|
|
8
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
state: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
is_paid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
accuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
model_id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
data_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
is_deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
model_type: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const nanoNetsGetModelDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
model_id: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { nanoNetsGetModelDetails };
|
|
9
30
|
//# sourceMappingURL=get-model-details.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-model-details.d.cts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-model-details.d.cts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAa7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-model-details.d.ts
|
|
4
|
-
declare const NanoNetsGetModelDetailsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NanoNetsGetModelDetailsInput: z.ZodObject<{
|
|
5
|
+
model_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const NanoNetsGetModelDetailsOutput: z.ZodObject<{
|
|
8
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
state: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
is_paid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
accuracy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
model_id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
is_public: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
data_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
is_deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
model_type: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
declare const nanoNetsGetModelDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
model_id: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { nanoNetsGetModelDetails };
|
|
9
30
|
//# sourceMappingURL=get-model-details.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-model-details.d.mts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-model-details.d.mts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAa7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-model-details.ts
|
|
4
4
|
const NanoNetsGetModelDetailsInput = z.object({ model_id: z.string().describe("Unique identifier of the OCR model to retrieve details.") }).describe("Request parameters for retrieving OCR model details.");
|
|
5
5
|
const NanoNetsGetModelDetails_CategoryInfoSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the category."),
|
|
7
|
-
name: z.string().describe("Name of the category/field."),
|
|
6
|
+
id: z.string().describe("Unique identifier for the category.").nullable(),
|
|
7
|
+
name: z.string().describe("Name of the category/field.").nullable(),
|
|
8
8
|
count: z.number().int().describe("Count of training examples for this category.").nullable().optional(),
|
|
9
9
|
data_type: z.string().describe("Data type of the category.").nullable().optional(),
|
|
10
10
|
description: z.string().describe("Description of the category.").nullable().optional()
|
|
@@ -16,15 +16,15 @@ const nanoNetsGetModelDetails = action("NANO_NETS_GET_MODEL_DETAILS", {
|
|
|
16
16
|
input: NanoNetsGetModelDetailsInput,
|
|
17
17
|
output: z.object({
|
|
18
18
|
email: z.string().describe("Email address associated with the model for uploads.").nullable().optional(),
|
|
19
|
-
state: z.number().int().describe("Current model state as integer (e.g., 5 for 'Model hosted')."),
|
|
19
|
+
state: z.number().int().describe("Current model state as integer (e.g., 5 for 'Model hosted').").nullable(),
|
|
20
20
|
status: z.string().describe("Human-readable status of the model (e.g., 'Model hosted').").nullable().optional(),
|
|
21
21
|
is_paid: z.boolean().describe("Whether this is a paid model.").nullable().optional(),
|
|
22
22
|
accuracy: z.number().describe("Model accuracy percentage (0-100).").nullable().optional(),
|
|
23
|
-
model_id: z.string().describe("Unique identifier of the model."),
|
|
23
|
+
model_id: z.string().describe("Unique identifier of the model.").nullable(),
|
|
24
24
|
is_public: z.boolean().describe("Whether the model is publicly accessible.").nullable().optional(),
|
|
25
25
|
categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe("List of categories/fields that this model can extract.").nullable().optional(),
|
|
26
26
|
is_deleted: z.boolean().describe("Whether the model has been deleted.").nullable().optional(),
|
|
27
|
-
model_type: z.string().describe("Type of the model (e.g., 'ocr').")
|
|
27
|
+
model_type: z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
28
28
|
}).passthrough().describe("Response schema for OCR model details.\nContains comprehensive model information including ID, type, status, categories, and metadata.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-model-details.mjs","names":[],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput
|
|
1
|
+
{"version":3,"file":"get-model-details.mjs","names":[],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\").nullable(),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCA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AY,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAOhB;AACV,CAAC"}
|
|
@@ -7,9 +7,9 @@ const NanoNetsGetTrainingImagesInput = zod.z.object({
|
|
|
7
7
|
page_size: zod.z.number().int().default(50).describe("Number of images to return per page. Defaults to 50.").optional()
|
|
8
8
|
}).describe("Request parameters for retrieving training images of an OCR model.");
|
|
9
9
|
const NanoNetsGetTrainingImages_ImageItemSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier of the image"),
|
|
11
|
-
url: zod.z.string().describe("URL of the training image"),
|
|
12
|
-
status: zod.z.string().describe("Status of the image"),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the image").nullable(),
|
|
11
|
+
url: zod.z.string().describe("URL of the training image").nullable(),
|
|
12
|
+
status: zod.z.string().describe("Status of the image").nullable(),
|
|
13
13
|
feedback: zod.z.array(zod.z.union([
|
|
14
14
|
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
15
15
|
zod.z.array(zod.z.unknown()),
|
|
@@ -17,13 +17,13 @@ const NanoNetsGetTrainingImages_ImageItemSchema = zod.z.object({
|
|
|
17
17
|
zod.z.number().int(),
|
|
18
18
|
zod.z.number(),
|
|
19
19
|
zod.z.boolean()
|
|
20
|
-
]).nullable()).describe("List of feedback annotations for the image").optional(),
|
|
21
|
-
filename: zod.z.string().describe("Filename of the image"),
|
|
22
|
-
uploaded: zod.z.string().describe("Upload timestamp in ISO 8601 format")
|
|
20
|
+
]).nullable()).describe("List of feedback annotations for the image").nullable().optional(),
|
|
21
|
+
filename: zod.z.string().describe("Filename of the image").nullable(),
|
|
22
|
+
uploaded: zod.z.string().describe("Upload timestamp in ISO 8601 format").nullable()
|
|
23
23
|
}).describe("Schema for a single training image metadata.");
|
|
24
24
|
const NanoNetsGetTrainingImagesOutput = zod.z.object({
|
|
25
25
|
next: zod.z.string().describe("URL to the next page of results").nullable().optional(),
|
|
26
|
-
count: zod.z.number().int().describe("Total number of training images"),
|
|
26
|
+
count: zod.z.number().int().describe("Total number of training images").nullable(),
|
|
27
27
|
images: zod.z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe("List of training images and their metadata"),
|
|
28
28
|
previous: zod.z.string().describe("URL to the previous page of results").nullable().optional()
|
|
29
29
|
}).describe("Response schema for retrieving training images of an OCR model.");
|
|
@@ -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
|
|
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}).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}).describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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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
|
4
|
+
declare const NanoNetsGetTrainingImagesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
model_id: z.ZodString;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
|
|
10
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
images: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
url: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodNullable<z.ZodString>;
|
|
16
|
+
feedback: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>>;
|
|
17
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
18
|
+
uploaded: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { nanoNetsGetTrainingImages };
|
|
9
29
|
//# 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":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-training-images.d.cts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-training-images.d.ts
|
|
4
|
-
declare const NanoNetsGetTrainingImagesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NanoNetsGetTrainingImagesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
model_id: z.ZodString;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
|
|
10
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
images: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
url: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodNullable<z.ZodString>;
|
|
16
|
+
feedback: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>>;
|
|
17
|
+
filename: z.ZodNullable<z.ZodString>;
|
|
18
|
+
uploaded: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { nanoNetsGetTrainingImages };
|
|
9
29
|
//# 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":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-training-images.d.mts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -7,9 +7,9 @@ const NanoNetsGetTrainingImagesInput = z.object({
|
|
|
7
7
|
page_size: z.number().int().default(50).describe("Number of images to return per page. Defaults to 50.").optional()
|
|
8
8
|
}).describe("Request parameters for retrieving training images of an OCR model.");
|
|
9
9
|
const NanoNetsGetTrainingImages_ImageItemSchema = z.object({
|
|
10
|
-
id: z.string().describe("Unique identifier of the image"),
|
|
11
|
-
url: z.string().describe("URL of the training image"),
|
|
12
|
-
status: z.string().describe("Status of the image"),
|
|
10
|
+
id: z.string().describe("Unique identifier of the image").nullable(),
|
|
11
|
+
url: z.string().describe("URL of the training image").nullable(),
|
|
12
|
+
status: z.string().describe("Status of the image").nullable(),
|
|
13
13
|
feedback: z.array(z.union([
|
|
14
14
|
z.record(z.string(), z.unknown()),
|
|
15
15
|
z.array(z.unknown()),
|
|
@@ -17,9 +17,9 @@ const NanoNetsGetTrainingImages_ImageItemSchema = z.object({
|
|
|
17
17
|
z.number().int(),
|
|
18
18
|
z.number(),
|
|
19
19
|
z.boolean()
|
|
20
|
-
]).nullable()).describe("List of feedback annotations for the image").optional(),
|
|
21
|
-
filename: z.string().describe("Filename of the image"),
|
|
22
|
-
uploaded: z.string().describe("Upload timestamp in ISO 8601 format")
|
|
20
|
+
]).nullable()).describe("List of feedback annotations for the image").nullable().optional(),
|
|
21
|
+
filename: z.string().describe("Filename of the image").nullable(),
|
|
22
|
+
uploaded: z.string().describe("Upload timestamp in ISO 8601 format").nullable()
|
|
23
23
|
}).describe("Schema for a single training image metadata.");
|
|
24
24
|
const nanoNetsGetTrainingImages = action("NANO_NETS_GET_TRAINING_IMAGES", {
|
|
25
25
|
slug: "nano_nets-get-training-images",
|
|
@@ -28,7 +28,7 @@ const nanoNetsGetTrainingImages = action("NANO_NETS_GET_TRAINING_IMAGES", {
|
|
|
28
28
|
input: NanoNetsGetTrainingImagesInput,
|
|
29
29
|
output: z.object({
|
|
30
30
|
next: z.string().describe("URL to the next page of results").nullable().optional(),
|
|
31
|
-
count: z.number().int().describe("Total number of training images"),
|
|
31
|
+
count: z.number().int().describe("Total number of training images").nullable(),
|
|
32
32
|
images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe("List of training images and their metadata"),
|
|
33
33
|
previous: z.string().describe("URL to the previous page of results").nullable().optional()
|
|
34
34
|
}).describe("Response schema for retrieving training images of an OCR model.")
|
|
@@ -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
|
|
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}).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}).describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SA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S,4CAA4C;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-workflows.ts
|
|
4
4
|
const NanoNetsGetWorkflowsInput = zod.z.object({}).describe("Request schema for listing all workflows.");
|
|
5
5
|
const NanoNetsGetWorkflows_WorkflowSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier for the workflow."),
|
|
7
|
-
type: zod.z.string().describe("Type of the workflow (e.g., 'invoice', 'receipt')."),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the workflow.").nullable(),
|
|
7
|
+
type: zod.z.string().describe("Type of the workflow (e.g., 'invoice', 'receipt').").nullable(),
|
|
8
8
|
settings: zod.z.union([
|
|
9
9
|
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
10
10
|
zod.z.array(zod.z.unknown()),
|
|
@@ -13,7 +13,7 @@ const NanoNetsGetWorkflows_WorkflowSchema = zod.z.object({
|
|
|
13
13
|
zod.z.number(),
|
|
14
14
|
zod.z.boolean()
|
|
15
15
|
]).nullable(),
|
|
16
|
-
description: zod.z.string().describe("Description of the workflow.")
|
|
16
|
+
description: zod.z.string().describe("Description of the workflow.").nullable()
|
|
17
17
|
}).describe("Schema for a single workflow in Nanonets.");
|
|
18
18
|
const NanoNetsGetWorkflowsOutput = zod.z.object({ workflows: zod.z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).describe("Response schema for listing workflows.");
|
|
19
19
|
const nanoNetsGetWorkflows = require_action.action("NANO_NETS_GET_WORKFLOWS", {
|
|
@@ -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
|
|
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}).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}).describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,2CAA2C;AACvD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-workflows.d.ts
|
|
4
|
-
declare const NanoNetsGetWorkflowsInput: z.
|
|
5
|
-
declare const NanoNetsGetWorkflowsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const NanoNetsGetWorkflowsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
|
|
6
|
+
workflows: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
type: z.ZodNullable<z.ZodString>;
|
|
9
|
+
settings: z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>;
|
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const nanoNetsGetWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { nanoNetsGetWorkflows };
|
|
9
16
|
//# sourceMappingURL=get-workflows.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-workflows.d.ts
|
|
4
|
-
declare const NanoNetsGetWorkflowsInput: z.
|
|
5
|
-
declare const NanoNetsGetWorkflowsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const NanoNetsGetWorkflowsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
|
|
6
|
+
workflows: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
type: z.ZodNullable<z.ZodString>;
|
|
9
|
+
settings: z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>, z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>;
|
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const nanoNetsGetWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { nanoNetsGetWorkflows };
|
|
9
16
|
//# sourceMappingURL=get-workflows.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-workflows.ts
|
|
4
4
|
const NanoNetsGetWorkflowsInput = z.object({}).describe("Request schema for listing all workflows.");
|
|
5
5
|
const NanoNetsGetWorkflows_WorkflowSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the workflow."),
|
|
7
|
-
type: z.string().describe("Type of the workflow (e.g., 'invoice', 'receipt')."),
|
|
6
|
+
id: z.string().describe("Unique identifier for the workflow.").nullable(),
|
|
7
|
+
type: z.string().describe("Type of the workflow (e.g., 'invoice', 'receipt').").nullable(),
|
|
8
8
|
settings: z.union([
|
|
9
9
|
z.record(z.string(), z.unknown()),
|
|
10
10
|
z.array(z.unknown()),
|
|
@@ -13,7 +13,7 @@ const NanoNetsGetWorkflows_WorkflowSchema = z.object({
|
|
|
13
13
|
z.number(),
|
|
14
14
|
z.boolean()
|
|
15
15
|
]).nullable(),
|
|
16
|
-
description: z.string().describe("Description of the workflow.")
|
|
16
|
+
description: z.string().describe("Description of the workflow.").nullable()
|
|
17
17
|
}).describe("Schema for a single workflow in Nanonets.");
|
|
18
18
|
const nanoNetsGetWorkflows = action("NANO_NETS_GET_WORKFLOWS", {
|
|
19
19
|
slug: "nano_nets-get-workflows",
|