@keystrokehq/nano_nets 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-model.cjs +5 -5
  4. package/dist/actions/create-model.cjs.map +1 -1
  5. package/dist/actions/create-model.d.cts +19 -3
  6. package/dist/actions/create-model.d.cts.map +1 -1
  7. package/dist/actions/create-model.d.mts +19 -3
  8. package/dist/actions/create-model.d.mts.map +1 -1
  9. package/dist/actions/create-model.mjs +5 -5
  10. package/dist/actions/create-model.mjs.map +1 -1
  11. package/dist/actions/delete-model.cjs +1 -1
  12. package/dist/actions/delete-model.cjs.map +1 -1
  13. package/dist/actions/delete-model.d.cts +10 -3
  14. package/dist/actions/delete-model.d.cts.map +1 -1
  15. package/dist/actions/delete-model.d.mts +10 -3
  16. package/dist/actions/delete-model.d.mts.map +1 -1
  17. package/dist/actions/delete-model.mjs +1 -1
  18. package/dist/actions/delete-model.mjs.map +1 -1
  19. package/dist/actions/get-all-models.cjs +5 -5
  20. package/dist/actions/get-all-models.cjs.map +1 -1
  21. package/dist/actions/get-all-models.d.cts +22 -3
  22. package/dist/actions/get-all-models.d.cts.map +1 -1
  23. package/dist/actions/get-all-models.d.mts +22 -3
  24. package/dist/actions/get-all-models.d.mts.map +1 -1
  25. package/dist/actions/get-all-models.mjs +5 -5
  26. package/dist/actions/get-all-models.mjs.map +1 -1
  27. package/dist/actions/get-all-prediction-files.cjs.map +1 -1
  28. package/dist/actions/get-all-prediction-files.d.cts +35 -3
  29. package/dist/actions/get-all-prediction-files.d.cts.map +1 -1
  30. package/dist/actions/get-all-prediction-files.d.mts +35 -3
  31. package/dist/actions/get-all-prediction-files.d.mts.map +1 -1
  32. package/dist/actions/get-all-prediction-files.mjs.map +1 -1
  33. package/dist/actions/get-model-details.cjs +5 -5
  34. package/dist/actions/get-model-details.cjs.map +1 -1
  35. package/dist/actions/get-model-details.d.cts +24 -3
  36. package/dist/actions/get-model-details.d.cts.map +1 -1
  37. package/dist/actions/get-model-details.d.mts +24 -3
  38. package/dist/actions/get-model-details.d.mts.map +1 -1
  39. package/dist/actions/get-model-details.mjs +5 -5
  40. package/dist/actions/get-model-details.mjs.map +1 -1
  41. package/dist/actions/get-training-images.cjs +7 -7
  42. package/dist/actions/get-training-images.cjs.map +1 -1
  43. package/dist/actions/get-training-images.d.cts +23 -3
  44. package/dist/actions/get-training-images.d.cts.map +1 -1
  45. package/dist/actions/get-training-images.d.mts +23 -3
  46. package/dist/actions/get-training-images.d.mts.map +1 -1
  47. package/dist/actions/get-training-images.mjs +7 -7
  48. package/dist/actions/get-training-images.mjs.map +1 -1
  49. package/dist/actions/get-workflows.cjs +3 -3
  50. package/dist/actions/get-workflows.cjs.map +1 -1
  51. package/dist/actions/get-workflows.d.cts +10 -3
  52. package/dist/actions/get-workflows.d.cts.map +1 -1
  53. package/dist/actions/get-workflows.d.mts +10 -3
  54. package/dist/actions/get-workflows.d.mts.map +1 -1
  55. package/dist/actions/get-workflows.mjs +3 -3
  56. package/dist/actions/get-workflows.mjs.map +1 -1
  57. package/dist/actions/list-documents.cjs +8 -8
  58. package/dist/actions/list-documents.cjs.map +1 -1
  59. package/dist/actions/list-documents.d.cts +35 -3
  60. package/dist/actions/list-documents.d.cts.map +1 -1
  61. package/dist/actions/list-documents.d.mts +35 -3
  62. package/dist/actions/list-documents.d.mts.map +1 -1
  63. package/dist/actions/list-documents.mjs +8 -8
  64. package/dist/actions/list-documents.mjs.map +1 -1
  65. package/dist/actions/update-model.cjs.map +1 -1
  66. package/dist/actions/update-model.d.cts +14 -3
  67. package/dist/actions/update-model.d.cts.map +1 -1
  68. package/dist/actions/update-model.d.mts +14 -3
  69. package/dist/actions/update-model.d.mts.map +1 -1
  70. package/dist/actions/update-model.mjs.map +1 -1
  71. package/dist/actions/upload-training-images-by-file.cjs +6 -6
  72. package/dist/actions/upload-training-images-by-file.cjs.map +1 -1
  73. package/dist/actions/upload-training-images-by-file.d.cts +26 -3
  74. package/dist/actions/upload-training-images-by-file.d.cts.map +1 -1
  75. package/dist/actions/upload-training-images-by-file.d.mts +26 -3
  76. package/dist/actions/upload-training-images-by-file.d.mts.map +1 -1
  77. package/dist/actions/upload-training-images-by-file.mjs +6 -6
  78. package/dist/actions/upload-training-images-by-file.mjs.map +1 -1
  79. package/dist/actions/upload-training-images-by-url.cjs +5 -5
  80. package/dist/actions/upload-training-images-by-url.cjs.map +1 -1
  81. package/dist/actions/upload-training-images-by-url.d.cts +20 -3
  82. package/dist/actions/upload-training-images-by-url.d.cts.map +1 -1
  83. package/dist/actions/upload-training-images-by-url.d.mts +20 -3
  84. package/dist/actions/upload-training-images-by-url.d.mts.map +1 -1
  85. package/dist/actions/upload-training-images-by-url.mjs +5 -5
  86. package/dist/actions/upload-training-images-by-url.mjs.map +1 -1
  87. package/dist/catalog.cjs +7 -1
  88. package/dist/catalog.cjs.map +1 -1
  89. package/dist/catalog.d.cts +8 -0
  90. package/dist/catalog.d.mts +8 -0
  91. package/dist/catalog.mjs +7 -1
  92. package/dist/catalog.mjs.map +1 -1
  93. package/package.json +2 -2
@@ -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.ZodTypeAny = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\"),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\"),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\"),\n}).describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput: z.ZodTypeAny = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACxH,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,UAAU,EAAE,MAAM;EAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAKvD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,WAAW,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
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;AAKvD,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,SAAS,wCAOF;AACV,CAAC"}
@@ -12,16 +12,16 @@ const NanoNetsListDocuments_PageDataSchema = zod.z.object({
12
12
  }).passthrough().describe("Schema for extracted data from a document page.");
13
13
  const NanoNetsListDocuments_DocumentPageSchema = zod.z.object({
14
14
  data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),
15
- page_id: zod.z.string().describe("Unique identifier for the document page."),
15
+ page_id: zod.z.string().describe("Unique identifier for the document page.").nullable(),
16
16
  image_url: zod.z.string().describe("URL of the page image.").nullable().optional(),
17
- page_number: zod.z.number().int().describe("Page number within the document (0-indexed).")
17
+ page_number: zod.z.number().int().describe("Page number within the document (0-indexed).").nullable()
18
18
  }).passthrough().describe("Schema for a page within a document.");
19
19
  const NanoNetsListDocuments_DocumentSchema = zod.z.object({
20
20
  pages: zod.z.array(NanoNetsListDocuments_DocumentPageSchema).describe("List of processed pages within the document.").nullable().optional(),
21
- status: zod.z.string().describe("Processing status of the document (e.g., 'success', 'processing', 'failed')."),
21
+ status: zod.z.string().describe("Processing status of the document (e.g., 'success', 'processing', 'failed').").nullable(),
22
22
  metadata: zod.z.string().describe("JSON string containing additional document metadata (e.g., email info).").nullable().optional(),
23
- document_id: zod.z.string().describe("Unique identifier for the document."),
24
- uploaded_at: zod.z.string().describe("Timestamp when the document was uploaded (ISO 8601)."),
23
+ document_id: zod.z.string().describe("Unique identifier for the document.").nullable(),
24
+ uploaded_at: zod.z.string().describe("Timestamp when the document was uploaded (ISO 8601).").nullable(),
25
25
  raw_document_url: zod.z.string().describe("URL path to the raw uploaded document.").nullable().optional(),
26
26
  assigned_reviewers: zod.z.array(zod.z.string()).describe("List of assigned reviewer IDs.").nullable().optional(),
27
27
  verification_stage: zod.z.string().describe("Current verification stage identifier.").nullable().optional(),
@@ -29,10 +29,10 @@ const NanoNetsListDocuments_DocumentSchema = zod.z.object({
29
29
  original_document_name: zod.z.string().describe("Original filename of the uploaded document.").nullable().optional()
30
30
  }).passthrough().describe("Schema for a document in the workflow.");
31
31
  const NanoNetsListDocumentsOutput = zod.z.object({
32
- page_no: zod.z.number().int().describe("Current page number."),
32
+ page_no: zod.z.number().int().describe("Current page number.").nullable(),
33
33
  documents: zod.z.array(NanoNetsListDocuments_DocumentSchema).describe("List of documents returned by the API.").nullable().optional(),
34
- page_size: zod.z.number().int().describe("Number of documents per page."),
35
- total_count: zod.z.number().int().describe("Total number of documents in the workflow.")
34
+ page_size: zod.z.number().int().describe("Number of documents per page.").nullable(),
35
+ total_count: zod.z.number().int().describe("Total number of documents in the workflow.").nullable()
36
36
  }).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",
@@ -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.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema: z.ZodTypeAny = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema: z.ZodTypeAny = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\"),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\"),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema: z.ZodTypeAny = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\"),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\"),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\"),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput: z.ZodTypeAny = z.object({\n page_no: z.number().int().describe(\"Current page number.\"),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\"),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\"),\n}).describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from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SAAS,kEAAkE;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,Q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CAAC,CAAC,SAAS;CACvG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-documents.d.ts
4
- declare const NanoNetsListDocumentsInput: z.ZodTypeAny;
5
- declare const NanoNetsListDocumentsOutput: z.ZodTypeAny;
6
- declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NanoNetsListDocumentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ workflow_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
10
+ page_no: z.ZodNullable<z.ZodNumber>;
11
+ documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
12
+ pages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ fields: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
15
+ tables: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
16
+ }, z.core.$loose>>>;
17
+ page_id: z.ZodNullable<z.ZodString>;
18
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ page_number: z.ZodNullable<z.ZodNumber>;
20
+ }, z.core.$loose>>>>;
21
+ status: z.ZodNullable<z.ZodString>;
22
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ document_id: z.ZodNullable<z.ZodString>;
24
+ uploaded_at: z.ZodNullable<z.ZodString>;
25
+ raw_document_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ assigned_reviewers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
27
+ verification_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ verification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ original_document_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>>>>;
31
+ page_size: z.ZodNullable<z.ZodNumber>;
32
+ total_count: z.ZodNullable<z.ZodNumber>;
33
+ }, z.core.$strip>;
34
+ declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ workflow_id: string;
36
+ page?: number | undefined;
37
+ limit?: number | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { nanoNetsListDocuments };
9
41
  //# sourceMappingURL=list-documents.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIiC;AAAA,cAuB/D,2BAAA,EAA6B,CAAA,CAAE,UAKmC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-documents.d.ts
4
- declare const NanoNetsListDocumentsInput: z.ZodTypeAny;
5
- declare const NanoNetsListDocumentsOutput: z.ZodTypeAny;
6
- declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NanoNetsListDocumentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ workflow_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
10
+ page_no: z.ZodNullable<z.ZodNumber>;
11
+ documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
12
+ pages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
13
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ fields: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
15
+ tables: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
16
+ }, z.core.$loose>>>;
17
+ page_id: z.ZodNullable<z.ZodString>;
18
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ page_number: z.ZodNullable<z.ZodNumber>;
20
+ }, z.core.$loose>>>>;
21
+ status: z.ZodNullable<z.ZodString>;
22
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ document_id: z.ZodNullable<z.ZodString>;
24
+ uploaded_at: z.ZodNullable<z.ZodString>;
25
+ raw_document_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ assigned_reviewers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
27
+ verification_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ verification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ original_document_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>>>>;
31
+ page_size: z.ZodNullable<z.ZodNumber>;
32
+ total_count: z.ZodNullable<z.ZodNumber>;
33
+ }, z.core.$strip>;
34
+ declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ workflow_id: string;
36
+ page?: number | undefined;
37
+ limit?: number | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { nanoNetsListDocuments };
9
41
  //# sourceMappingURL=list-documents.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIiC;AAAA,cAuB/D,2BAAA,EAA6B,CAAA,CAAE,UAKmC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
@@ -12,16 +12,16 @@ const NanoNetsListDocuments_PageDataSchema = z.object({
12
12
  }).passthrough().describe("Schema for extracted data from a document page.");
13
13
  const NanoNetsListDocuments_DocumentPageSchema = z.object({
14
14
  data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),
15
- page_id: z.string().describe("Unique identifier for the document page."),
15
+ page_id: z.string().describe("Unique identifier for the document page.").nullable(),
16
16
  image_url: z.string().describe("URL of the page image.").nullable().optional(),
17
- page_number: z.number().int().describe("Page number within the document (0-indexed).")
17
+ page_number: z.number().int().describe("Page number within the document (0-indexed).").nullable()
18
18
  }).passthrough().describe("Schema for a page within a document.");
19
19
  const NanoNetsListDocuments_DocumentSchema = z.object({
20
20
  pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe("List of processed pages within the document.").nullable().optional(),
21
- status: z.string().describe("Processing status of the document (e.g., 'success', 'processing', 'failed')."),
21
+ status: z.string().describe("Processing status of the document (e.g., 'success', 'processing', 'failed').").nullable(),
22
22
  metadata: z.string().describe("JSON string containing additional document metadata (e.g., email info).").nullable().optional(),
23
- document_id: z.string().describe("Unique identifier for the document."),
24
- uploaded_at: z.string().describe("Timestamp when the document was uploaded (ISO 8601)."),
23
+ document_id: z.string().describe("Unique identifier for the document.").nullable(),
24
+ uploaded_at: z.string().describe("Timestamp when the document was uploaded (ISO 8601).").nullable(),
25
25
  raw_document_url: z.string().describe("URL path to the raw uploaded document.").nullable().optional(),
26
26
  assigned_reviewers: z.array(z.string()).describe("List of assigned reviewer IDs.").nullable().optional(),
27
27
  verification_stage: z.string().describe("Current verification stage identifier.").nullable().optional(),
@@ -34,10 +34,10 @@ const nanoNetsListDocuments = action("NANO_NETS_LIST_DOCUMENTS", {
34
34
  description: "Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.",
35
35
  input: NanoNetsListDocumentsInput,
36
36
  output: z.object({
37
- page_no: z.number().int().describe("Current page number."),
37
+ page_no: z.number().int().describe("Current page number.").nullable(),
38
38
  documents: z.array(NanoNetsListDocuments_DocumentSchema).describe("List of documents returned by the API.").nullable().optional(),
39
- page_size: z.number().int().describe("Number of documents per page."),
40
- total_count: z.number().int().describe("Total number of documents in the workflow.")
39
+ page_size: z.number().int().describe("Number of documents per page.").nullable(),
40
+ total_count: z.number().int().describe("Total number of documents in the workflow.").nullable()
41
41
  }).describe("Response schema containing paginated list of workflow documents.")
42
42
  });
43
43
  //#endregion
@@ -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.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema: z.ZodTypeAny = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema: z.ZodTypeAny = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\"),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\"),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema: z.ZodTypeAny = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\"),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\"),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\"),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput: z.ZodTypeAny = z.object({\n page_no: z.number().int().describe(\"Current page number.\"),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\"),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\"),\n}).describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\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AS,qCAAqC;CACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;EACzD,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CACrF,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
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,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CA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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,kEAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.cjs","names":["z","action"],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUpdateModelInput: z.ZodTypeAny = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput: z.ZodTypeAny = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC3K,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-model.cjs","names":["z","action"],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUpdateModelInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC3K,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-model.d.ts
4
- declare const NanoNetsUpdateModelInput: z.ZodTypeAny;
5
- declare const NanoNetsUpdateModelOutput: z.ZodTypeAny;
6
- declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NanoNetsUpdateModelInput: z.ZodObject<{
5
+ model_id: z.ZodString;
6
+ field_instructions: z.ZodString;
7
+ table_instructions: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const NanoNetsUpdateModelOutput: z.ZodObject<{
10
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>;
13
+ declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ model_id: string;
15
+ field_instructions: string;
16
+ table_instructions: string;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { nanoNetsUpdateModel };
9
20
  //# sourceMappingURL=update-model.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI8E;AAAA,cAC1G,yBAAA,EAA2B,CAAA,CAAE,UAGsC;AAAA,cAEnE,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-model.d.ts
4
- declare const NanoNetsUpdateModelInput: z.ZodTypeAny;
5
- declare const NanoNetsUpdateModelOutput: z.ZodTypeAny;
6
- declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NanoNetsUpdateModelInput: z.ZodObject<{
5
+ model_id: z.ZodString;
6
+ field_instructions: z.ZodString;
7
+ table_instructions: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const NanoNetsUpdateModelOutput: z.ZodObject<{
10
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>;
13
+ declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ model_id: string;
15
+ field_instructions: string;
16
+ table_instructions: string;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { nanoNetsUpdateModel };
9
20
  //# sourceMappingURL=update-model.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI8E;AAAA,cAC1G,yBAAA,EAA2B,CAAA,CAAE,UAGsC;AAAA,cAEnE,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.mjs","names":[],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUpdateModelInput: z.ZodTypeAny = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput: z.ZodTypeAny = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAC/F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EACvK,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3K,CAAC,CAAC,CAAC,SAAS,0GAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-model.mjs","names":[],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUpdateModelInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAC/F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EACvK,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3K,CAAC,CAAC,CAAC,SAAS,0GAUH;CACP,QAVuC,EAAE,OAAO;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -10,15 +10,15 @@ const NanoNetsUploadTrainingImagesByFileInput = zod.z.object({
10
10
  model_id: zod.z.string().describe("Unique identifier of the OCR model to which the image will be uploaded.")
11
11
  }).describe("Request parameters for uploading a training image file to an OCR model.");
12
12
  const NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema = zod.z.object({
13
- id: zod.z.string().describe("Unique identifier for the category."),
14
- name: zod.z.string().describe("Name of the category."),
15
- count: zod.z.number().int().describe("Number of images in this category.")
13
+ id: zod.z.string().describe("Unique identifier for the category.").nullable(),
14
+ name: zod.z.string().describe("Name of the category.").nullable(),
15
+ count: zod.z.number().int().describe("Number of images in this category.").nullable()
16
16
  }).describe("Information about a category in the model.");
17
17
  const NanoNetsUploadTrainingImagesByFileOutput = zod.z.object({
18
- state: zod.z.number().int().describe("Current state code of the model."),
19
- model_id: zod.z.string().describe("Unique identifier of the model the image was uploaded to."),
18
+ state: zod.z.number().int().describe("Current state code of the model.").nullable(),
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
- model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').")
21
+ model_type: zod.z.string().describe("Type of the model (e.g., 'ocr').").nullable()
22
22
  }).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",
@@ -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.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The image file to upload for training. Supported formats: PNG, JPEG, PDF.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the image will be uploaded.\"),\n}).describe(\"Request parameters for uploading a training image file to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the category.\"),\n name: z.string().describe(\"Name of the category.\"),\n count: z.number().int().describe(\"Number of images in this category.\"),\n}).describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny = z.object({\n state: z.number().int().describe(\"Current state code of the model.\"),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\"),\n categories: z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe(\"List of categories in the model with image counts.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\"),\n}).describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE\", {\n slug: \"nano_nets-upload-training-images-by-file\",\n name: \"Upload Training Images by File\",\n description: \"Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.\",\n input: NanoNetsUploadTrainingImagesByFileInput,\n output: NanoNetsUploadTrainingImagesByFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,2EAA2E;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;AACzG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,YAAYA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACpE,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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;AACxD,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/upload-training-images-by-file.d.ts
4
- declare const NanoNetsUploadTrainingImagesByFileInput: z.ZodTypeAny;
5
- declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny;
6
- declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NanoNetsUploadTrainingImagesByFileInput: z.ZodObject<{
5
+ file: z.ZodObject<{
6
+ name: z.ZodString;
7
+ s3key: z.ZodString;
8
+ mimetype: z.ZodString;
9
+ }, z.core.$strip>;
10
+ model_id: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodObject<{
13
+ state: z.ZodNullable<z.ZodNumber>;
14
+ model_id: z.ZodNullable<z.ZodString>;
15
+ categories: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ name: z.ZodNullable<z.ZodString>;
18
+ count: z.ZodNullable<z.ZodNumber>;
19
+ }, z.core.$strip>>;
20
+ model_type: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ file: {
24
+ name: string;
25
+ s3key: string;
26
+ mimetype: string;
27
+ };
28
+ model_id: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { nanoNetsUploadTrainingImagesByFile };
9
32
  //# sourceMappingURL=upload-training-images-by-file.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload-training-images-by-file.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAO8B;AAAA,cAMzE,wCAAA,EAA0C,CAAA,CAAE,UAKmB;AAAA,cAE/D,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"upload-training-images-by-file.d.cts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAavC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAOxC,kCAAA,gCAAkC,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/upload-training-images-by-file.d.ts
4
- declare const NanoNetsUploadTrainingImagesByFileInput: z.ZodTypeAny;
5
- declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny;
6
- declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const NanoNetsUploadTrainingImagesByFileInput: z.ZodObject<{
5
+ file: z.ZodObject<{
6
+ name: z.ZodString;
7
+ s3key: z.ZodString;
8
+ mimetype: z.ZodString;
9
+ }, z.core.$strip>;
10
+ model_id: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const NanoNetsUploadTrainingImagesByFileOutput: z.ZodObject<{
13
+ state: z.ZodNullable<z.ZodNumber>;
14
+ model_id: z.ZodNullable<z.ZodString>;
15
+ categories: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ name: z.ZodNullable<z.ZodString>;
18
+ count: z.ZodNullable<z.ZodNumber>;
19
+ }, z.core.$strip>>;
20
+ model_type: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const nanoNetsUploadTrainingImagesByFile: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ file: {
24
+ name: string;
25
+ s3key: string;
26
+ mimetype: string;
27
+ };
28
+ model_id: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { nanoNetsUploadTrainingImagesByFile };
9
32
  //# sourceMappingURL=upload-training-images-by-file.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload-training-images-by-file.d.mts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAO8B;AAAA,cAMzE,wCAAA,EAA0C,CAAA,CAAE,UAKmB;AAAA,cAE/D,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"upload-training-images-by-file.d.mts","names":[],"sources":["../../src/actions/upload-training-images-by-file.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAavC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAOxC,kCAAA,gCAAkC,wBAAA"}
@@ -10,9 +10,9 @@ const NanoNetsUploadTrainingImagesByFileInput = z.object({
10
10
  model_id: z.string().describe("Unique identifier of the OCR model to which the image will be uploaded.")
11
11
  }).describe("Request parameters for uploading a training image file to an OCR model.");
12
12
  const NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema = z.object({
13
- id: z.string().describe("Unique identifier for the category."),
14
- name: z.string().describe("Name of the category."),
15
- count: z.number().int().describe("Number of images in this category.")
13
+ id: z.string().describe("Unique identifier for the category.").nullable(),
14
+ name: z.string().describe("Name of the category.").nullable(),
15
+ count: z.number().int().describe("Number of images in this category.").nullable()
16
16
  }).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",
@@ -20,10 +20,10 @@ const nanoNetsUploadTrainingImagesByFile = action("NANO_NETS_UPLOAD_TRAINING_IMA
20
20
  description: "Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.",
21
21
  input: NanoNetsUploadTrainingImagesByFileInput,
22
22
  output: z.object({
23
- state: z.number().int().describe("Current state code of the model."),
24
- model_id: z.string().describe("Unique identifier of the model the image was uploaded to."),
23
+ state: z.number().int().describe("Current state code of the model.").nullable(),
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
- model_type: z.string().describe("Type of the model (e.g., 'ocr').")
26
+ model_type: z.string().describe("Type of the model (e.g., 'ocr').").nullable()
27
27
  }).describe("Response schema for the training image file upload operation.")
28
28
  });
29
29
  //#endregion
@@ -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.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The image file to upload for training. Supported formats: PNG, JPEG, PDF.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the image will be uploaded.\"),\n}).describe(\"Request parameters for uploading a training image file to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the category.\"),\n name: z.string().describe(\"Name of the category.\"),\n count: z.number().int().describe(\"Number of images in this category.\"),\n}).describe(\"Information about a category in the model.\");\nexport const NanoNetsUploadTrainingImagesByFileOutput: z.ZodTypeAny = z.object({\n state: z.number().int().describe(\"Current state code of the model.\"),\n model_id: z.string().describe(\"Unique identifier of the model the image was uploaded to.\"),\n categories: z.array(NanoNetsUploadTrainingImagesByFile_CategoryInfoSchema).describe(\"List of categories in the model with image counts.\"),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\"),\n}).describe(\"Response schema for the training image file upload operation.\");\n\nexport const nanoNetsUploadTrainingImagesByFile = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_FILE\", {\n slug: \"nano_nets-upload-training-images-by-file\",\n name: \"Upload Training Images by File\",\n description: \"Tool to upload a training image file to a specified OCR model. Use when adding a local image file to train the model. Supported file formats include PNG, JPEG, and PDF.\",\n input: NanoNetsUploadTrainingImagesByFileInput,\n output: NanoNetsUploadTrainingImagesByFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwD,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,2EAA2E;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;AACzG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,wDAAsE,EAAE,OAAO;CACnF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AACvE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAQxD,MAAa,qCAAqC,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoE,EAAE,OAAO;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACzF,YAAY,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,oDAAoD;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACpE,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
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;AAQxD,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,SAAS,+DAOF;AACV,CAAC"}
@@ -6,16 +6,16 @@ const NanoNetsUploadTrainingImagesByUrlInput = zod.z.object({
6
6
  model_id: zod.z.string().describe("Unique identifier of the OCR model to which the images will be uploaded.")
7
7
  }).describe("Request parameters for uploading training images by URL to an OCR model.");
8
8
  const NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema = zod.z.object({
9
- url: zod.z.string().describe("URL of the successfully uploaded image."),
10
- upload_id: zod.z.string().describe("Unique upload ID for the image.")
9
+ url: zod.z.string().describe("URL of the successfully uploaded image.").nullable(),
10
+ upload_id: zod.z.string().describe("Unique upload ID for the image.").nullable()
11
11
  }).describe("Details of a successfully uploaded image URL.");
12
12
  const NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema = zod.z.object({
13
- url: zod.z.string().describe("URL of the duplicate image."),
14
- upload_id: zod.z.string().describe("Upload ID of the original image.")
13
+ url: zod.z.string().describe("URL of the duplicate image.").nullable(),
14
+ upload_id: zod.z.string().describe("Upload ID of the original image.").nullable()
15
15
  }).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
- message: zod.z.string().describe("Status message returned by the API."),
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
21
  }).describe("Response schema for uploading 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.ZodTypeAny = z.object({\n urls: z.array(z.string()).describe(\"List of publicly accessible image URLs to upload for training.\"),\n model_id: z.string().describe(\"Unique identifier of the OCR model to which the images will be uploaded.\"),\n}).describe(\"Request parameters for uploading training images by URL to an OCR model.\");\nconst NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the successfully uploaded image.\"),\n upload_id: z.string().describe(\"Unique upload ID for the image.\"),\n}).describe(\"Details of a successfully uploaded image URL.\");\nconst NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the duplicate image.\"),\n upload_id: z.string().describe(\"Upload ID of the original image.\"),\n}).describe(\"Details of a duplicate image URL.\");\nexport const NanoNetsUploadTrainingImagesByUrlOutput: z.ZodTypeAny = z.object({\n invalid: z.array(z.string()).describe(\"List of invalid URLs that could not be processed.\"),\n message: z.string().describe(\"Status message returned by the API.\"),\n uploaded: z.array(NanoNetsUploadTrainingImagesByUrl_UploadedItemSchema).describe(\"List of successfully uploaded image details.\"),\n duplicate: z.array(NanoNetsUploadTrainingImagesByUrl_DuplicateItemSchema).describe(\"List of duplicate image details, if any.\"),\n}).describe(\"Response schema for uploading training images by URL.\");\n\nexport const nanoNetsUploadTrainingImagesByUrl = action(\"NANO_NETS_UPLOAD_TRAINING_IMAGES_BY_URL\", {\n slug: \"nano_nets-upload-training-images-by-url\",\n name: \"Upload Training Images by URL\",\n description: \"Tool to upload training images by URL to a specified OCR model. Use when adding URLs of images to a model for training purposes.\",\n input: NanoNetsUploadTrainingImagesByUrlInput,\n output: NanoNetsUploadTrainingImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;AAC1G,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAClE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAClE,UAAUA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,8CAA8C;CAC/H,WAAWA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,0CAA0C;AAC/H,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,oCAAoCC,eAAAA,OAAO,2CAA2C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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;AAC3D,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC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