@keystrokehq/nano_nets 0.1.2 → 0.1.3
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/actions/create-model.cjs +2 -2
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +2 -2
- package/dist/actions/create-model.d.mts +2 -2
- package/dist/actions/create-model.mjs +2 -2
- 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 +1 -1
- package/dist/actions/delete-model.d.mts +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 +1 -1
- package/dist/actions/get-all-models.cjs.map +1 -1
- package/dist/actions/get-all-models.d.cts +1 -1
- package/dist/actions/get-all-models.d.mts +1 -1
- package/dist/actions/get-all-models.mjs +1 -1
- package/dist/actions/get-all-models.mjs.map +1 -1
- package/dist/actions/get-training-images.cjs +2 -2
- package/dist/actions/get-training-images.cjs.map +1 -1
- package/dist/actions/get-training-images.d.cts +2 -2
- package/dist/actions/get-training-images.d.mts +2 -2
- package/dist/actions/get-training-images.mjs +2 -2
- package/dist/actions/get-training-images.mjs.map +1 -1
- package/dist/actions/get-workflows.cjs +2 -2
- package/dist/actions/get-workflows.cjs.map +1 -1
- package/dist/actions/get-workflows.d.cts +2 -2
- package/dist/actions/get-workflows.d.mts +2 -2
- package/dist/actions/get-workflows.mjs +2 -2
- package/dist/actions/get-workflows.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +1 -1
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +1 -1
- package/dist/actions/list-documents.d.mts +1 -1
- package/dist/actions/list-documents.mjs +1 -1
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/upload-training-images-by-file.cjs +2 -2
- package/dist/actions/upload-training-images-by-file.cjs.map +1 -1
- package/dist/actions/upload-training-images-by-file.d.cts +2 -2
- package/dist/actions/upload-training-images-by-file.d.mts +2 -2
- package/dist/actions/upload-training-images-by-file.mjs +2 -2
- package/dist/actions/upload-training-images-by-file.mjs.map +1 -1
- package/dist/actions/upload-training-images-by-url.cjs +3 -3
- package/dist/actions/upload-training-images-by-url.cjs.map +1 -1
- package/dist/actions/upload-training-images-by-url.d.cts +3 -3
- package/dist/actions/upload-training-images-by-url.d.mts +3 -3
- package/dist/actions/upload-training-images-by-url.mjs +3 -3
- package/dist/actions/upload-training-images-by-url.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,14 +8,14 @@ const NanoNetsCreateModel_CategoryInfoSchema = zod.z.object({
|
|
|
8
8
|
count: zod.z.number().int().default(0).describe("Number of training examples for this category.").nullable().optional(),
|
|
9
9
|
data_type: zod.z.string().default("").describe("Data type of the field.").nullable().optional(),
|
|
10
10
|
description: zod.z.string().default("").describe("Description of the category.").nullable().optional()
|
|
11
|
-
}).describe("Information about a category/field in the model.");
|
|
11
|
+
}).passthrough().describe("Information about a category/field in the model.");
|
|
12
12
|
const NanoNetsCreateModelOutput = zod.z.object({
|
|
13
13
|
state: zod.z.number().int().describe("Current state of the model (0=created, 5=hosted).").nullable(),
|
|
14
14
|
status: zod.z.string().describe("Human-readable status message.").nullable(),
|
|
15
15
|
model_id: zod.z.string().describe("Unique identifier for the created model.").nullable(),
|
|
16
16
|
categories: zod.z.array(NanoNetsCreateModel_CategoryInfoSchema).describe("List of categories/fields configured for the model."),
|
|
17
17
|
model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
18
|
-
}).describe("Response schema for a newly created model.");
|
|
18
|
+
}).passthrough().describe("Response schema for a newly created model.");
|
|
19
19
|
const nanoNetsCreateModel = require_action.action("NANO_NETS_CREATE_MODEL", {
|
|
20
20
|
slug: "nano_nets-create-model",
|
|
21
21
|
name: "Create Model",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsCreateModelInput = z.object({\n categories: z.array(z.string()).describe(\"List of category/class names for the model to identify. For image classification, provide labels like ['cat', 'dog']. For OCR extraction, provide field names to extract like ['invoice_number', 'date', 'total'].\"),\n}).describe(\"Request schema for creating a new image classification or OCR model.\");\nconst NanoNetsCreateModel_CategoryInfoSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the category.\").nullable().optional(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().default(0).describe(\"Number of training examples for this category.\").nullable().optional(),\n data_type: z.string().default(\"\").describe(\"Data type of the field.\").nullable().optional(),\n description: z.string().default(\"\").describe(\"Description of the category.\").nullable().optional(),\n}).describe(\"Information about a category/field in the model.\");\nexport const NanoNetsCreateModelOutput = z.object({\n state: z.number().int().describe(\"Current state of the model (0=created, 5=hosted).\").nullable(),\n status: z.string().describe(\"Human-readable status message.\").nullable(),\n model_id: z.string().describe(\"Unique identifier for the created model.\").nullable(),\n categories: z.array(NanoNetsCreateModel_CategoryInfoSchema).describe(\"List of categories/fields configured for the model.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).describe(\"Response schema for a newly created model.\");\n\nexport const nanoNetsCreateModel = action(\"NANO_NETS_CREATE_MODEL\", {\n slug: \"nano_nets-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new image classification or OCR model. Use when you need to initialize a model before uploading training images. Provide a list of categories/classes that the model should learn to identify or extract.\",\n input: NanoNetsCreateModelInput,\n output: NanoNetsCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,EAC/P,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsCreateModelInput = z.object({\n categories: z.array(z.string()).describe(\"List of category/class names for the model to identify. For image classification, provide labels like ['cat', 'dog']. For OCR extraction, provide field names to extract like ['invoice_number', 'date', 'total'].\"),\n}).describe(\"Request schema for creating a new image classification or OCR model.\");\nconst NanoNetsCreateModel_CategoryInfoSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the category.\").nullable().optional(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().default(0).describe(\"Number of training examples for this category.\").nullable().optional(),\n data_type: z.string().default(\"\").describe(\"Data type of the field.\").nullable().optional(),\n description: z.string().default(\"\").describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Information about a category/field in the model.\");\nexport const NanoNetsCreateModelOutput = z.object({\n state: z.number().int().describe(\"Current state of the model (0=created, 5=hosted).\").nullable(),\n status: z.string().describe(\"Human-readable status message.\").nullable(),\n model_id: z.string().describe(\"Unique identifier for the created model.\").nullable(),\n categories: z.array(NanoNetsCreateModel_CategoryInfoSchema).describe(\"List of categories/fields configured for the model.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for a newly created model.\");\n\nexport const nanoNetsCreateModel = action(\"NANO_NETS_CREATE_MODEL\", {\n slug: \"nano_nets-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new image classification or OCR model. Use when you need to initialize a model before uploading training images. Provide a list of categories/classes that the model should learn to identify or extract.\",\n input: NanoNetsCreateModelInput,\n output: NanoNetsCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,EAC/P,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,qDAAqD;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,9 +14,9 @@ declare const NanoNetsCreateModelOutput: z.ZodObject<{
|
|
|
14
14
|
count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
15
15
|
data_type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
16
16
|
description: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
model_type: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const nanoNetsCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
categories: string[];
|
|
22
22
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -14,9 +14,9 @@ declare const NanoNetsCreateModelOutput: z.ZodObject<{
|
|
|
14
14
|
count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
15
15
|
data_type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
16
16
|
description: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
model_type: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const nanoNetsCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
categories: string[];
|
|
22
22
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const NanoNetsCreateModel_CategoryInfoSchema = z.object({
|
|
|
8
8
|
count: z.number().int().default(0).describe("Number of training examples for this category.").nullable().optional(),
|
|
9
9
|
data_type: z.string().default("").describe("Data type of the field.").nullable().optional(),
|
|
10
10
|
description: z.string().default("").describe("Description of the category.").nullable().optional()
|
|
11
|
-
}).describe("Information about a category/field in the model.");
|
|
11
|
+
}).passthrough().describe("Information about a category/field in the model.");
|
|
12
12
|
const nanoNetsCreateModel = action("NANO_NETS_CREATE_MODEL", {
|
|
13
13
|
slug: "nano_nets-create-model",
|
|
14
14
|
name: "Create Model",
|
|
@@ -20,7 +20,7 @@ const nanoNetsCreateModel = action("NANO_NETS_CREATE_MODEL", {
|
|
|
20
20
|
model_id: z.string().describe("Unique identifier for the created model.").nullable(),
|
|
21
21
|
categories: z.array(NanoNetsCreateModel_CategoryInfoSchema).describe("List of categories/fields configured for the model."),
|
|
22
22
|
model_type: z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
23
|
-
}).describe("Response schema for a newly created model.")
|
|
23
|
+
}).passthrough().describe("Response schema for a newly created model.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { nanoNetsCreateModel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsCreateModelInput = z.object({\n categories: z.array(z.string()).describe(\"List of category/class names for the model to identify. For image classification, provide labels like ['cat', 'dog']. For OCR extraction, provide field names to extract like ['invoice_number', 'date', 'total'].\"),\n}).describe(\"Request schema for creating a new image classification or OCR model.\");\nconst NanoNetsCreateModel_CategoryInfoSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the category.\").nullable().optional(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().default(0).describe(\"Number of training examples for this category.\").nullable().optional(),\n data_type: z.string().default(\"\").describe(\"Data type of the field.\").nullable().optional(),\n description: z.string().default(\"\").describe(\"Description of the category.\").nullable().optional(),\n}).describe(\"Information about a category/field in the model.\");\nexport const NanoNetsCreateModelOutput = z.object({\n state: z.number().int().describe(\"Current state of the model (0=created, 5=hosted).\").nullable(),\n status: z.string().describe(\"Human-readable status message.\").nullable(),\n model_id: z.string().describe(\"Unique identifier for the created model.\").nullable(),\n categories: z.array(NanoNetsCreateModel_CategoryInfoSchema).describe(\"List of categories/fields configured for the model.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).describe(\"Response schema for a newly created model.\");\n\nexport const nanoNetsCreateModel = action(\"NANO_NETS_CREATE_MODEL\", {\n slug: \"nano_nets-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new image classification or OCR model. Use when you need to initialize a model before uploading training images. Provide a list of categories/classes that the model should learn to identify or extract.\",\n input: NanoNetsCreateModelInput,\n output: NanoNetsCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,EAC/P,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsCreateModelInput = z.object({\n categories: z.array(z.string()).describe(\"List of category/class names for the model to identify. For image classification, provide labels like ['cat', 'dog']. For OCR extraction, provide field names to extract like ['invoice_number', 'date', 'total'].\"),\n}).describe(\"Request schema for creating a new image classification or OCR model.\");\nconst NanoNetsCreateModel_CategoryInfoSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the category.\").nullable().optional(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().default(0).describe(\"Number of training examples for this category.\").nullable().optional(),\n data_type: z.string().default(\"\").describe(\"Data type of the field.\").nullable().optional(),\n description: z.string().default(\"\").describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Information about a category/field in the model.\");\nexport const NanoNetsCreateModelOutput = z.object({\n state: z.number().int().describe(\"Current state of the model (0=created, 5=hosted).\").nullable(),\n status: z.string().describe(\"Human-readable status message.\").nullable(),\n model_id: z.string().describe(\"Unique identifier for the created model.\").nullable(),\n categories: z.array(NanoNetsCreateModel_CategoryInfoSchema).describe(\"List of categories/fields configured for the model.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for a newly created model.\");\n\nexport const nanoNetsCreateModel = action(\"NANO_NETS_CREATE_MODEL\", {\n slug: \"nano_nets-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new image classification or OCR model. Use when you need to initialize a model before uploading training images. Provide a list of categories/classes that the model should learn to identify or extract.\",\n input: NanoNetsCreateModelInput,\n output: NanoNetsCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,EAC/P,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAS5E,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,qDAAqD;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const NanoNetsDeleteModelInput = zod.z.object({ model_id: zod.z.string().describ
|
|
|
5
5
|
const NanoNetsDeleteModelOutput = zod.z.object({
|
|
6
6
|
message: zod.z.string().describe("Confirmation message indicating the model was deleted successfully.").nullable(),
|
|
7
7
|
model_id: zod.z.string().describe("The ID of the deleted model, if returned by the API.").nullable().optional()
|
|
8
|
-
});
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const nanoNetsDeleteModel = require_action.action("NANO_NETS_DELETE_MODEL", {
|
|
10
10
|
slug: "nano_nets-delete-model",
|
|
11
11
|
name: "Delete OCR Model",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-model.cjs","names":["z","action"],"sources":["../../src/actions/delete-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsDeleteModelInput = z.object({\n model_id: z.string().describe(\"The unique identifier (UUID) of the OCR model to delete. Get this from the 'Get all OCR models' action.\"),\n});\nexport const NanoNetsDeleteModelOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the model was deleted successfully.\").nullable(),\n model_id: z.string().describe(\"The ID of the deleted model, if returned by the API.\").nullable().optional(),\n});\n\nexport const nanoNetsDeleteModel = action(\"NANO_NETS_DELETE_MODEL\", {\n slug: \"nano_nets-delete-model\",\n name: \"Delete OCR Model\",\n description: \"Permanently deletes an OCR model from Nanonets. Use this action when you need to remove a trained model that is no longer needed. This action is irreversible - once deleted, the model and all its training data cannot be recovered. Prerequisites: Obtain the model_id from the 'Get all OCR models' action first.\",\n input: NanoNetsDeleteModelInput,\n output: NanoNetsDeleteModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EACzI,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC;
|
|
1
|
+
{"version":3,"file":"delete-model.cjs","names":["z","action"],"sources":["../../src/actions/delete-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsDeleteModelInput = z.object({\n model_id: z.string().describe(\"The unique identifier (UUID) of the OCR model to delete. Get this from the 'Get all OCR models' action.\"),\n});\nexport const NanoNetsDeleteModelOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the model was deleted successfully.\").nullable(),\n model_id: z.string().describe(\"The ID of the deleted model, if returned by the API.\").nullable().optional(),\n}).passthrough();\n\nexport const nanoNetsDeleteModel = action(\"NANO_NETS_DELETE_MODEL\", {\n slug: \"nano_nets-delete-model\",\n name: \"Delete OCR Model\",\n description: \"Permanently deletes an OCR model from Nanonets. Use this action when you need to remove a trained model that is no longer needed. This action is irreversible - once deleted, the model and all its training data cannot be recovered. Prerequisites: Obtain the model_id from the 'Get all OCR models' action first.\",\n input: NanoNetsDeleteModelInput,\n output: NanoNetsDeleteModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EACzI,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const NanoNetsDeleteModelInput: z.ZodObject<{
|
|
|
7
7
|
declare const NanoNetsDeleteModelOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodString>;
|
|
9
9
|
model_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const nanoNetsDeleteModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
model_id: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ declare const NanoNetsDeleteModelInput: z.ZodObject<{
|
|
|
7
7
|
declare const NanoNetsDeleteModelOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodString>;
|
|
9
9
|
model_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const nanoNetsDeleteModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
model_id: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const nanoNetsDeleteModel = action("NANO_NETS_DELETE_MODEL", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
message: z.string().describe("Confirmation message indicating the model was deleted successfully.").nullable(),
|
|
10
10
|
model_id: z.string().describe("The ID of the deleted model, if returned by the API.").nullable().optional()
|
|
11
|
-
})
|
|
11
|
+
}).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { nanoNetsDeleteModel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-model.mjs","names":[],"sources":["../../src/actions/delete-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsDeleteModelInput = z.object({\n model_id: z.string().describe(\"The unique identifier (UUID) of the OCR model to delete. Get this from the 'Get all OCR models' action.\"),\n});\nexport const NanoNetsDeleteModelOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the model was deleted successfully.\").nullable(),\n model_id: z.string().describe(\"The ID of the deleted model, if returned by the API.\").nullable().optional(),\n});\n\nexport const nanoNetsDeleteModel = action(\"NANO_NETS_DELETE_MODEL\", {\n slug: \"nano_nets-delete-model\",\n name: \"Delete OCR Model\",\n description: \"Permanently deletes an OCR model from Nanonets. Use this action when you need to remove a trained model that is no longer needed. This action is irreversible - once deleted, the model and all its training data cannot be recovered. Prerequisites: Obtain the model_id from the 'Get all OCR models' action first.\",\n input: NanoNetsDeleteModelInput,\n output: NanoNetsDeleteModelOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EACzI,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,
|
|
1
|
+
{"version":3,"file":"delete-model.mjs","names":[],"sources":["../../src/actions/delete-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsDeleteModelInput = z.object({\n model_id: z.string().describe(\"The unique identifier (UUID) of the OCR model to delete. Get this from the 'Get all OCR models' action.\"),\n});\nexport const NanoNetsDeleteModelOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the model was deleted successfully.\").nullable(),\n model_id: z.string().describe(\"The ID of the deleted model, if returned by the API.\").nullable().optional(),\n}).passthrough();\n\nexport const nanoNetsDeleteModel = action(\"NANO_NETS_DELETE_MODEL\", {\n slug: \"nano_nets-delete-model\",\n name: \"Delete OCR Model\",\n description: \"Permanently deletes an OCR model from Nanonets. Use this action when you need to remove a trained model that is no longer needed. This action is irreversible - once deleted, the model and all its training data cannot be recovered. Prerequisites: Obtain the model_id from the 'Get all OCR models' action first.\",\n input: NanoNetsDeleteModelInput,\n output: NanoNetsDeleteModelOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EACzI,CAUS;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const NanoNetsGetAllModels_ModelInfoSchema = zod.z.object({
|
|
|
21
21
|
is_deleted: zod.z.boolean().describe("Whether the model has been deleted.").nullable().optional(),
|
|
22
22
|
model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
23
23
|
}).passthrough().describe("Schema for an individual model in NanoNets.");
|
|
24
|
-
const NanoNetsGetAllModelsOutput = zod.z.object({ models: zod.z.array(NanoNetsGetAllModels_ModelInfoSchema).describe("List of model details.") }).describe("Response from listing models. Contains an array of model details.");
|
|
24
|
+
const NanoNetsGetAllModelsOutput = zod.z.object({ models: zod.z.array(NanoNetsGetAllModels_ModelInfoSchema).describe("List of model details.") }).passthrough().describe("Response from listing models. Contains an array of model details.");
|
|
25
25
|
const nanoNetsGetAllModels = require_action.action("NANO_NETS_GET_ALL_MODELS", {
|
|
26
26
|
slug: "nano_nets-get-all-models",
|
|
27
27
|
name: "Get All Models",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-models.cjs","names":["z","action"],"sources":["../../src/actions/get-all-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllModelsInput = z.object({}).describe(\"Request parameters to list all models in the NanoNets account.\\nAll parameters are optional; omit for default behavior.\");\nconst NanoNetsGetAllModels_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.\");\nconst NanoNetsGetAllModels_ModelInfoSchema = 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 for the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetAllModels_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(\"Schema for an individual model in NanoNets.\");\nexport const NanoNetsGetAllModelsOutput = z.object({\n models: z.array(NanoNetsGetAllModels_ModelInfoSchema).describe(\"List of model details.\"),\n}).describe(\"Response from listing models. Contains an array of model details.\");\n\nexport const nanoNetsGetAllModels = action(\"NANO_NETS_GET_ALL_MODELS\", {\n slug: \"nano_nets-get-all-models\",\n name: \"Get All Models\",\n description: \"Retrieves all models (OCR and Image Classification) in the user's NanoNets account. Returns model details including ID, type, status, accuracy, and extractable fields/categories. Use to discover available models before performing predictions or training operations.\",\n input: NanoNetsGetAllModelsInput,\n output: NanoNetsGetAllModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH;AACxL,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAA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AAQ,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,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB,EACzF,CAAC,CAAC,CAAC,SAAS,mEAAmE;
|
|
1
|
+
{"version":3,"file":"get-all-models.cjs","names":["z","action"],"sources":["../../src/actions/get-all-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllModelsInput = z.object({}).describe(\"Request parameters to list all models in the NanoNets account.\\nAll parameters are optional; omit for default behavior.\");\nconst NanoNetsGetAllModels_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.\");\nconst NanoNetsGetAllModels_ModelInfoSchema = 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 for the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetAllModels_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(\"Schema for an individual model in NanoNets.\");\nexport const NanoNetsGetAllModelsOutput = z.object({\n models: z.array(NanoNetsGetAllModels_ModelInfoSchema).describe(\"List of model details.\"),\n}).passthrough().describe(\"Response from listing models. Contains an array of model details.\");\n\nexport const nanoNetsGetAllModels = action(\"NANO_NETS_GET_ALL_MODELS\", {\n slug: \"nano_nets-get-all-models\",\n name: \"Get All Models\",\n description: \"Retrieves all models (OCR and Image Classification) in the user's NanoNets account. Returns model details including ID, type, status, accuracy, and extractable fields/categories. Use to discover available models before performing predictions or training operations.\",\n input: NanoNetsGetAllModelsInput,\n output: NanoNetsGetAllModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH;AACxL,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,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,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,OAAO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CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ declare const NanoNetsGetAllModelsOutput: z.ZodObject<{
|
|
|
21
21
|
is_deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
22
|
model_type: z.ZodNullable<z.ZodString>;
|
|
23
23
|
}, z.core.$loose>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const nanoNetsGetAllModels: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { nanoNetsGetAllModels };
|
|
@@ -21,7 +21,7 @@ declare const NanoNetsGetAllModelsOutput: z.ZodObject<{
|
|
|
21
21
|
is_deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
22
|
model_type: z.ZodNullable<z.ZodString>;
|
|
23
23
|
}, z.core.$loose>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const nanoNetsGetAllModels: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { nanoNetsGetAllModels };
|
|
@@ -26,7 +26,7 @@ const nanoNetsGetAllModels = action("NANO_NETS_GET_ALL_MODELS", {
|
|
|
26
26
|
name: "Get All Models",
|
|
27
27
|
description: "Retrieves all models (OCR and Image Classification) in the user's NanoNets account. Returns model details including ID, type, status, accuracy, and extractable fields/categories. Use to discover available models before performing predictions or training operations.",
|
|
28
28
|
input: NanoNetsGetAllModelsInput,
|
|
29
|
-
output: z.object({ models: z.array(NanoNetsGetAllModels_ModelInfoSchema).describe("List of model details.") }).describe("Response from listing models. Contains an array of model details.")
|
|
29
|
+
output: z.object({ models: z.array(NanoNetsGetAllModels_ModelInfoSchema).describe("List of model details.") }).passthrough().describe("Response from listing models. Contains an array of model details.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { nanoNetsGetAllModels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-models.mjs","names":[],"sources":["../../src/actions/get-all-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllModelsInput = z.object({}).describe(\"Request parameters to list all models in the NanoNets account.\\nAll parameters are optional; omit for default behavior.\");\nconst NanoNetsGetAllModels_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.\");\nconst NanoNetsGetAllModels_ModelInfoSchema = 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 for the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetAllModels_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(\"Schema for an individual model in NanoNets.\");\nexport const NanoNetsGetAllModelsOutput = z.object({\n models: z.array(NanoNetsGetAllModels_ModelInfoSchema).describe(\"List of model details.\"),\n}).describe(\"Response from listing models. Contains an array of model details.\");\n\nexport const nanoNetsGetAllModels = action(\"NANO_NETS_GET_ALL_MODELS\", {\n slug: \"nano_nets-get-all-models\",\n name: \"Get All Models\",\n description: \"Retrieves all models (OCR and Image Classification) in the user's NanoNets account. Returns model details including ID, type, status, accuracy, and extractable fields/categories. Use to discover available models before performing predictions or training operations.\",\n input: NanoNetsGetAllModelsInput,\n output: NanoNetsGetAllModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH;AACxL,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAM,uCAAuC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB,EACzF,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-all-models.mjs","names":[],"sources":["../../src/actions/get-all-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllModelsInput = z.object({}).describe(\"Request parameters to list all models in the NanoNets account.\\nAll parameters are optional; omit for default behavior.\");\nconst NanoNetsGetAllModels_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.\");\nconst NanoNetsGetAllModels_ModelInfoSchema = 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 for the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetAllModels_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(\"Schema for an individual model in NanoNets.\");\nexport const NanoNetsGetAllModelsOutput = z.object({\n models: z.array(NanoNetsGetAllModels_ModelInfoSchema).describe(\"List of model details.\"),\n}).passthrough().describe(\"Response from listing models. Contains an array of model details.\");\n\nexport const nanoNetsGetAllModels = action(\"NANO_NETS_GET_ALL_MODELS\", {\n slug: \"nano_nets-get-all-models\",\n name: \"Get All Models\",\n description: \"Retrieves all models (OCR and Image Classification) in the user's NanoNets account. Returns model details including ID, type, status, accuracy, and extractable fields/categories. Use to discover available models before performing predictions or training operations.\",\n input: NanoNetsGetAllModelsInput,\n output: NanoNetsGetAllModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yHAAyH;AACxL,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,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C,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAOhB;AACV,CAAC"}
|
|
@@ -20,13 +20,13 @@ const NanoNetsGetTrainingImages_ImageItemSchema = zod.z.object({
|
|
|
20
20
|
]).nullable()).describe("List of feedback annotations for the image").nullable().optional(),
|
|
21
21
|
filename: zod.z.string().describe("Filename of the image").nullable(),
|
|
22
22
|
uploaded: zod.z.string().describe("Upload timestamp in ISO 8601 format").nullable()
|
|
23
|
-
}).describe("Schema for a single training image metadata.");
|
|
23
|
+
}).passthrough().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
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
|
-
}).describe("Response schema for retrieving training images of an OCR model.");
|
|
29
|
+
}).passthrough().describe("Response schema for retrieving training images of an OCR model.");
|
|
30
30
|
const nanoNetsGetTrainingImages = require_action.action("NANO_NETS_GET_TRAINING_IMAGES", {
|
|
31
31
|
slug: "nano_nets-get-training-images",
|
|
32
32
|
name: "Get OCR Training Images",
|
|
@@ -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}).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,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,SAAS,8CAA8C;
|
|
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":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,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,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,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,9 +16,9 @@ declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
|
|
|
16
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
17
|
filename: z.ZodNullable<z.ZodString>;
|
|
18
18
|
uploaded: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
model_id: string;
|
|
24
24
|
page?: number | undefined;
|
|
@@ -16,9 +16,9 @@ declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
|
|
|
16
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
17
|
filename: z.ZodNullable<z.ZodString>;
|
|
18
18
|
uploaded: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
model_id: string;
|
|
24
24
|
page?: number | undefined;
|
|
@@ -20,7 +20,7 @@ const NanoNetsGetTrainingImages_ImageItemSchema = z.object({
|
|
|
20
20
|
]).nullable()).describe("List of feedback annotations for the image").nullable().optional(),
|
|
21
21
|
filename: z.string().describe("Filename of the image").nullable(),
|
|
22
22
|
uploaded: z.string().describe("Upload timestamp in ISO 8601 format").nullable()
|
|
23
|
-
}).describe("Schema for a single training image metadata.");
|
|
23
|
+
}).passthrough().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",
|
|
26
26
|
name: "Get OCR Training Images",
|
|
@@ -31,7 +31,7 @@ const nanoNetsGetTrainingImages = action("NANO_NETS_GET_TRAINING_IMAGES", {
|
|
|
31
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
|
-
}).describe("Response schema for retrieving training images of an OCR model.")
|
|
34
|
+
}).passthrough().describe("Response schema for retrieving training images of an OCR model.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { nanoNetsGetTrainingImages };
|
|
@@ -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}).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,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,SAAS,8CAA8C;
|
|
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":";;;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,SAAS,mHAAmH;CACjJ,WAAW,EAAE,OAAO,C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,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
|
|
@@ -14,8 +14,8 @@ const NanoNetsGetWorkflows_WorkflowSchema = zod.z.object({
|
|
|
14
14
|
zod.z.boolean()
|
|
15
15
|
]).nullable(),
|
|
16
16
|
description: zod.z.string().describe("Description of the workflow.").nullable()
|
|
17
|
-
}).describe("Schema for a single workflow in Nanonets.");
|
|
18
|
-
const NanoNetsGetWorkflowsOutput = zod.z.object({ workflows: zod.z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).describe("Response schema for listing workflows.");
|
|
17
|
+
}).passthrough().describe("Schema for a single workflow in Nanonets.");
|
|
18
|
+
const NanoNetsGetWorkflowsOutput = zod.z.object({ workflows: zod.z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).passthrough().describe("Response schema for listing workflows.");
|
|
19
19
|
const nanoNetsGetWorkflows = require_action.action("NANO_NETS_GET_WORKFLOWS", {
|
|
20
20
|
slug: "nano_nets-get-workflows",
|
|
21
21
|
name: "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 = 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;
|
|
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":";;;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,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,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,8 +8,8 @@ declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
|
|
|
8
8
|
type: z.ZodNullable<z.ZodString>;
|
|
9
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
10
|
description: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
12
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
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]>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { nanoNetsGetWorkflows };
|
|
@@ -8,8 +8,8 @@ declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
|
|
|
8
8
|
type: z.ZodNullable<z.ZodString>;
|
|
9
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
10
|
description: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
12
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
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]>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { nanoNetsGetWorkflows };
|
|
@@ -14,13 +14,13 @@ const NanoNetsGetWorkflows_WorkflowSchema = z.object({
|
|
|
14
14
|
z.boolean()
|
|
15
15
|
]).nullable(),
|
|
16
16
|
description: z.string().describe("Description of the workflow.").nullable()
|
|
17
|
-
}).describe("Schema for a single workflow in Nanonets.");
|
|
17
|
+
}).passthrough().describe("Schema for a single workflow in Nanonets.");
|
|
18
18
|
const nanoNetsGetWorkflows = action("NANO_NETS_GET_WORKFLOWS", {
|
|
19
19
|
slug: "nano_nets-get-workflows",
|
|
20
20
|
name: "Get Workflows",
|
|
21
21
|
description: "Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.",
|
|
22
22
|
input: NanoNetsGetWorkflowsInput,
|
|
23
|
-
output: z.object({ workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).describe("Response schema for listing workflows.")
|
|
23
|
+
output: z.object({ workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe("List of workflows in the account.") }).passthrough().describe("Response schema for listing workflows.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { nanoNetsGetWorkflows };
|
|
@@ -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}).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,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,SAAS,2CAA2C;
|
|
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":";;;AAIA,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,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,WAAW,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -33,7 +33,7 @@ const NanoNetsListDocumentsOutput = zod.z.object({
|
|
|
33
33
|
documents: zod.z.array(NanoNetsListDocuments_DocumentSchema).describe("List of documents returned by the API.").nullable().optional(),
|
|
34
34
|
page_size: zod.z.number().int().describe("Number of documents per page.").nullable(),
|
|
35
35
|
total_count: zod.z.number().int().describe("Total number of documents in the workflow.").nullable()
|
|
36
|
-
}).describe("Response schema containing paginated list of workflow documents.");
|
|
36
|
+
}).passthrough().describe("Response schema containing paginated list of workflow documents.");
|
|
37
37
|
const nanoNetsListDocuments = require_action.action("NANO_NETS_LIST_DOCUMENTS", {
|
|
38
38
|
slug: "nano_nets-list-documents",
|
|
39
39
|
name: "List Workflow Documents",
|
|
@@ -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}).describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;AACtK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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AAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,kEAAkE;
|
|
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":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gE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C"}
|
|
@@ -30,7 +30,7 @@ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
|
|
|
30
30
|
}, z.core.$loose>>>>;
|
|
31
31
|
page_size: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
total_count: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
workflow_id: string;
|
|
36
36
|
page?: number | undefined;
|
|
@@ -30,7 +30,7 @@ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
|
|
|
30
30
|
}, z.core.$loose>>>>;
|
|
31
31
|
page_size: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
total_count: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
workflow_id: string;
|
|
36
36
|
page?: number | undefined;
|
|
@@ -38,7 +38,7 @@ const nanoNetsListDocuments = action("NANO_NETS_LIST_DOCUMENTS", {
|
|
|
38
38
|
documents: z.array(NanoNetsListDocuments_DocumentSchema).describe("List of documents returned by the API.").nullable().optional(),
|
|
39
39
|
page_size: z.number().int().describe("Number of documents per page.").nullable(),
|
|
40
40
|
total_count: z.number().int().describe("Total number of documents in the workflow.").nullable()
|
|
41
|
-
}).describe("Response schema containing paginated list of workflow documents.")
|
|
41
|
+
}).passthrough().describe("Response schema containing paginated list of workflow documents.")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { nanoNetsListDocuments };
|
|
@@ -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}).describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;AACtK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uCAAuC,EAAE,OAAO;CACpD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wB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O;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,
|
|
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":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;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AAC,CAAC,SAAS;CACpG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
|
|
@@ -13,13 +13,13 @@ const NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema = zod.z.object({
|
|
|
13
13
|
id: zod.z.string().describe("Unique identifier for the category.").nullable(),
|
|
14
14
|
name: zod.z.string().describe("Name of the category.").nullable(),
|
|
15
15
|
count: zod.z.number().int().describe("Number of images in this category.").nullable()
|
|
16
|
-
}).describe("Information about a category in the model.");
|
|
16
|
+
}).passthrough().describe("Information about a category in the model.");
|
|
17
17
|
const NanoNetsUploadTrainingImagesByFileOutput = zod.z.object({
|
|
18
18
|
state: zod.z.number().int().describe("Current state code of the model.").nullable(),
|
|
19
19
|
model_id: zod.z.string().describe("Unique identifier of the model the image was uploaded to.").nullable(),
|
|
20
20
|
categories: zod.z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe("List of categories in the model with image counts."),
|
|
21
21
|
model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
22
|
-
}).describe("Response schema for the training image file upload operation.");
|
|
22
|
+
}).passthrough().describe("Response schema for the training image file upload operation.");
|
|
23
23
|
const nanoNetsUploadTrainingImagesByFile = require_action.action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE", {
|
|
24
24
|
slug: "nano_nets-upload-training-images-by-file",
|
|
25
25
|
name: "Upload Training Images by File",
|
|
@@ -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}).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}).describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE\", {\n slug: \"nano_nets-upload-training-images-by-file\",\n name: \"Upload Training Images by File\",\n description: \"Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.\",\n input: NanoNetsUploadTrainingImagesByFileInput,\n output: NanoNetsUploadTrainingImagesByFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,4CAA4C;
|
|
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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AAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,9 +16,9 @@ declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodObject<{
|
|
|
16
16
|
id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
name: z.ZodNullable<z.ZodString>;
|
|
18
18
|
count: z.ZodNullable<z.ZodNumber>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
model_type: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
file: {
|
|
24
24
|
name: string;
|
|
@@ -16,9 +16,9 @@ declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodObject<{
|
|
|
16
16
|
id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
name: z.ZodNullable<z.ZodString>;
|
|
18
18
|
count: z.ZodNullable<z.ZodNumber>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
model_type: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
file: {
|
|
24
24
|
name: string;
|
|
@@ -13,7 +13,7 @@ const NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema = z.object({
|
|
|
13
13
|
id: z.string().describe("Unique identifier for the category.").nullable(),
|
|
14
14
|
name: z.string().describe("Name of the category.").nullable(),
|
|
15
15
|
count: z.number().int().describe("Number of images in this category.").nullable()
|
|
16
|
-
}).describe("Information about a category in the model.");
|
|
16
|
+
}).passthrough().describe("Information about a category in the model.");
|
|
17
17
|
const nanoNetsUploadTrainingImagesByFile = action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE", {
|
|
18
18
|
slug: "nano_nets-upload-training-images-by-file",
|
|
19
19
|
name: "Upload Training Images by File",
|
|
@@ -24,7 +24,7 @@ const nanoNetsUploadTrainingImagesByFile = action("NANO_NETS_UPLOAD_TRAINING_IMA
|
|
|
24
24
|
model_id: z.string().describe("Unique identifier of the model the image was uploaded to.").nullable(),
|
|
25
25
|
categories: z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe("List of categories in the model with image counts."),
|
|
26
26
|
model_type: z.string().describe("Type of the model (e.g., 'ocr').").nullable()
|
|
27
|
-
}).describe("Response schema for the training image file upload operation.")
|
|
27
|
+
}).passthrough().describe("Response schema for the training image file upload operation.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { nanoNetsUploadTrainingImagesByFile };
|
|
@@ -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}).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}).describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE\", {\n slug: \"nano_nets-upload-training-images-by-file\",\n name: \"Upload Training Images by File\",\n description: \"Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.\",\n input: NanoNetsUploadTrainingImagesByFileInput,\n output: NanoNetsUploadTrainingImagesByFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,4CAA4C;
|
|
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":";;;AAIA,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,qCAAqC,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsD,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,+DAOhB;AACV,CAAC"}
|
|
@@ -8,17 +8,17 @@ const NanoNetsUploadTrainingImagesByUrlInput = zod.z.object({
|
|
|
8
8
|
const NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema = zod.z.object({
|
|
9
9
|
url: zod.z.string().describe("URL of the successfully uploaded image.").nullable(),
|
|
10
10
|
upload_id: zod.z.string().describe("Unique upload ID for the image.").nullable()
|
|
11
|
-
}).describe("Details of a successfully uploaded image URL.");
|
|
11
|
+
}).passthrough().describe("Details of a successfully uploaded image URL.");
|
|
12
12
|
const NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = zod.z.object({
|
|
13
13
|
url: zod.z.string().describe("URL of the duplicate image.").nullable(),
|
|
14
14
|
upload_id: zod.z.string().describe("Upload ID of the original image.").nullable()
|
|
15
|
-
}).describe("Details of a duplicate image URL.");
|
|
15
|
+
}).passthrough().describe("Details of a duplicate image URL.");
|
|
16
16
|
const NanoNetsUploadTrainingImagesByUrlOutput = zod.z.object({
|
|
17
17
|
invalid: zod.z.array(zod.z.string()).describe("List of invalid URLs that could not be processed."),
|
|
18
18
|
message: zod.z.string().describe("Status message returned by the API.").nullable(),
|
|
19
19
|
uploaded: zod.z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe("List of successfully uploaded image details."),
|
|
20
20
|
duplicate: zod.z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe("List of duplicate image details, if any.")
|
|
21
|
-
}).describe("Response schema for uploading training images by URL.");
|
|
21
|
+
}).passthrough().describe("Response schema for uploading training images by URL.");
|
|
22
22
|
const nanoNetsUploadTrainingImagesByUrl = require_action.action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL", {
|
|
23
23
|
slug: "nano_nets-upload-training-images-by-url",
|
|
24
24
|
name: "Upload Training Images by URL",
|
|
@@ -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}).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}).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}).describe(\"Response schema for uploading training images by URL.\");\n\nexport const nanoNetsUploadTrainingImagesByUrl = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL\", {\n slug: \"nano_nets-upload-training-images-by-url\",\n name: \"Upload Training Images by URL\",\n description: \"Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.\",\n input: NanoNetsUploadTrainingImagesByUrlInput,\n output: NanoNetsUploadTrainingImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,+CAA+C;
|
|
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: NanoNets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MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,12 +11,12 @@ declare const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodObject<{
|
|
|
11
11
|
uploaded: z.ZodArray<z.ZodObject<{
|
|
12
12
|
url: z.ZodNullable<z.ZodString>;
|
|
13
13
|
upload_id: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
15
|
duplicate: z.ZodArray<z.ZodObject<{
|
|
16
16
|
url: z.ZodNullable<z.ZodString>;
|
|
17
17
|
upload_id: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const nanoNetsUploadTrainingImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
urls: string[];
|
|
22
22
|
model_id: string;
|
|
@@ -11,12 +11,12 @@ declare const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodObject<{
|
|
|
11
11
|
uploaded: z.ZodArray<z.ZodObject<{
|
|
12
12
|
url: z.ZodNullable<z.ZodString>;
|
|
13
13
|
upload_id: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
15
|
duplicate: z.ZodArray<z.ZodObject<{
|
|
16
16
|
url: z.ZodNullable<z.ZodString>;
|
|
17
17
|
upload_id: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const nanoNetsUploadTrainingImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
urls: string[];
|
|
22
22
|
model_id: string;
|
|
@@ -8,11 +8,11 @@ const NanoNetsUploadTrainingImagesByUrlInput = z.object({
|
|
|
8
8
|
const NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema = z.object({
|
|
9
9
|
url: z.string().describe("URL of the successfully uploaded image.").nullable(),
|
|
10
10
|
upload_id: z.string().describe("Unique upload ID for the image.").nullable()
|
|
11
|
-
}).describe("Details of a successfully uploaded image URL.");
|
|
11
|
+
}).passthrough().describe("Details of a successfully uploaded image URL.");
|
|
12
12
|
const NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = z.object({
|
|
13
13
|
url: z.string().describe("URL of the duplicate image.").nullable(),
|
|
14
14
|
upload_id: z.string().describe("Upload ID of the original image.").nullable()
|
|
15
|
-
}).describe("Details of a duplicate image URL.");
|
|
15
|
+
}).passthrough().describe("Details of a duplicate image URL.");
|
|
16
16
|
const nanoNetsUploadTrainingImagesByUrl = action("NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL", {
|
|
17
17
|
slug: "nano_nets-upload-training-images-by-url",
|
|
18
18
|
name: "Upload Training Images by URL",
|
|
@@ -23,7 +23,7 @@ const nanoNetsUploadTrainingImagesByUrl = action("NANO_NETS_UPLOAD_TRAINING_IMAG
|
|
|
23
23
|
message: z.string().describe("Status message returned by the API.").nullable(),
|
|
24
24
|
uploaded: z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe("List of successfully uploaded image details."),
|
|
25
25
|
duplicate: z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe("List of duplicate image details, if any.")
|
|
26
|
-
}).describe("Response schema for uploading training images by URL.")
|
|
26
|
+
}).passthrough().describe("Response schema for uploading training images by URL.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { nanoNetsUploadTrainingImagesByUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-training-images-by-url.mjs","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUploadTrainingImagesByUrlInput = z.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}).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}).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}).describe(\"Response schema for uploading training images by URL.\");\n\nexport const nanoNetsUploadTrainingImagesByUrl = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL\", {\n slug: \"nano_nets-upload-training-images-by-url\",\n name: \"Upload Training Images by URL\",\n description: \"Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.\",\n input: NanoNetsUploadTrainingImagesByUrlInput,\n output: NanoNetsUploadTrainingImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC1G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,+CAA+C;
|
|
1
|
+
{"version":3,"file":"upload-training-images-by-url.mjs","names":[],"sources":["../../src/actions/upload-training-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUploadTrainingImagesByUrlInput = z.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":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC1G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,wDAAwD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAQ7D,MAAa,oCAAoC,OAAO,2CAA2C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZqD,EAAE,OAAO;EAC9D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,8CAA8C;EAC/H,WAAW,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,0CAA0C;CAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|