@keystrokehq/nano_nets 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) 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 +1 -0
  4. package/dist/actions/create-model.cjs.map +1 -1
  5. package/dist/actions/create-model.d.cts +3 -3
  6. package/dist/actions/create-model.d.cts.map +1 -1
  7. package/dist/actions/create-model.d.mts +3 -3
  8. package/dist/actions/create-model.d.mts.map +1 -1
  9. package/dist/actions/create-model.mjs +1 -0
  10. package/dist/actions/create-model.mjs.map +1 -1
  11. package/dist/actions/delete-model.cjs +1 -0
  12. package/dist/actions/delete-model.cjs.map +1 -1
  13. package/dist/actions/delete-model.d.cts +3 -3
  14. package/dist/actions/delete-model.d.cts.map +1 -1
  15. package/dist/actions/delete-model.d.mts +3 -3
  16. package/dist/actions/delete-model.d.mts.map +1 -1
  17. package/dist/actions/delete-model.mjs +1 -0
  18. package/dist/actions/delete-model.mjs.map +1 -1
  19. package/dist/actions/get-all-models.cjs +1 -0
  20. package/dist/actions/get-all-models.cjs.map +1 -1
  21. package/dist/actions/get-all-models.d.cts +3 -1
  22. package/dist/actions/get-all-models.d.cts.map +1 -1
  23. package/dist/actions/get-all-models.d.mts +3 -1
  24. package/dist/actions/get-all-models.d.mts.map +1 -1
  25. package/dist/actions/get-all-models.mjs +1 -0
  26. package/dist/actions/get-all-models.mjs.map +1 -1
  27. package/dist/actions/get-all-prediction-files.cjs +1 -0
  28. package/dist/actions/get-all-prediction-files.cjs.map +1 -1
  29. package/dist/actions/get-all-prediction-files.d.cts +3 -5
  30. package/dist/actions/get-all-prediction-files.d.cts.map +1 -1
  31. package/dist/actions/get-all-prediction-files.d.mts +3 -5
  32. package/dist/actions/get-all-prediction-files.d.mts.map +1 -1
  33. package/dist/actions/get-all-prediction-files.mjs +1 -0
  34. package/dist/actions/get-all-prediction-files.mjs.map +1 -1
  35. package/dist/actions/get-model-details.cjs +1 -0
  36. package/dist/actions/get-model-details.cjs.map +1 -1
  37. package/dist/actions/get-model-details.d.cts +3 -3
  38. package/dist/actions/get-model-details.d.cts.map +1 -1
  39. package/dist/actions/get-model-details.d.mts +3 -3
  40. package/dist/actions/get-model-details.d.mts.map +1 -1
  41. package/dist/actions/get-model-details.mjs +1 -0
  42. package/dist/actions/get-model-details.mjs.map +1 -1
  43. package/dist/actions/get-training-images.cjs +1 -0
  44. package/dist/actions/get-training-images.cjs.map +1 -1
  45. package/dist/actions/get-training-images.d.cts +3 -5
  46. package/dist/actions/get-training-images.d.cts.map +1 -1
  47. package/dist/actions/get-training-images.d.mts +3 -5
  48. package/dist/actions/get-training-images.d.mts.map +1 -1
  49. package/dist/actions/get-training-images.mjs +1 -0
  50. package/dist/actions/get-training-images.mjs.map +1 -1
  51. package/dist/actions/get-workflows.cjs +1 -0
  52. package/dist/actions/get-workflows.cjs.map +1 -1
  53. package/dist/actions/get-workflows.d.cts +3 -1
  54. package/dist/actions/get-workflows.d.cts.map +1 -1
  55. package/dist/actions/get-workflows.d.mts +3 -1
  56. package/dist/actions/get-workflows.d.mts.map +1 -1
  57. package/dist/actions/get-workflows.mjs +1 -0
  58. package/dist/actions/get-workflows.mjs.map +1 -1
  59. package/dist/actions/list-documents.cjs +1 -0
  60. package/dist/actions/list-documents.cjs.map +1 -1
  61. package/dist/actions/list-documents.d.cts +3 -5
  62. package/dist/actions/list-documents.d.cts.map +1 -1
  63. package/dist/actions/list-documents.d.mts +3 -5
  64. package/dist/actions/list-documents.d.mts.map +1 -1
  65. package/dist/actions/list-documents.mjs +1 -0
  66. package/dist/actions/list-documents.mjs.map +1 -1
  67. package/dist/actions/update-model.cjs +1 -0
  68. package/dist/actions/update-model.cjs.map +1 -1
  69. package/dist/actions/update-model.d.cts +3 -5
  70. package/dist/actions/update-model.d.cts.map +1 -1
  71. package/dist/actions/update-model.d.mts +3 -5
  72. package/dist/actions/update-model.d.mts.map +1 -1
  73. package/dist/actions/update-model.mjs +1 -0
  74. package/dist/actions/update-model.mjs.map +1 -1
  75. package/dist/actions/upload-training-images-by-file.cjs +1 -0
  76. package/dist/actions/upload-training-images-by-file.cjs.map +1 -1
  77. package/dist/actions/upload-training-images-by-file.d.cts +3 -8
  78. package/dist/actions/upload-training-images-by-file.d.cts.map +1 -1
  79. package/dist/actions/upload-training-images-by-file.d.mts +3 -8
  80. package/dist/actions/upload-training-images-by-file.d.mts.map +1 -1
  81. package/dist/actions/upload-training-images-by-file.mjs +1 -0
  82. package/dist/actions/upload-training-images-by-file.mjs.map +1 -1
  83. package/dist/actions/upload-training-images-by-url.cjs +1 -0
  84. package/dist/actions/upload-training-images-by-url.cjs.map +1 -1
  85. package/dist/actions/upload-training-images-by-url.d.cts +3 -4
  86. package/dist/actions/upload-training-images-by-url.d.cts.map +1 -1
  87. package/dist/actions/upload-training-images-by-url.d.mts +3 -4
  88. package/dist/actions/upload-training-images-by-url.d.mts.map +1 -1
  89. package/dist/actions/upload-training-images-by-url.mjs +1 -0
  90. package/dist/actions/upload-training-images-by-url.mjs.map +1 -1
  91. package/dist/app.cjs +5 -2
  92. package/dist/app.cjs.map +1 -1
  93. package/dist/app.d.cts +7 -1
  94. package/dist/app.d.cts.map +1 -1
  95. package/dist/app.d.mts +7 -1
  96. package/dist/app.d.mts.map +1 -1
  97. package/dist/app.mjs +3 -2
  98. package/dist/app.mjs.map +1 -1
  99. package/dist/index.d.cts +1 -1
  100. package/dist/index.d.mts +1 -1
  101. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["nanoNets","executeNanoNetsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nanoNets } from \"./app\";\nimport { executeNanoNetsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return nanoNets.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNanoNetsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["nanoNets","executeNanoNetsTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { nanoNets } from \"./app\";\nimport { executeNanoNetsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof nanoNets.credential> {\n return nanoNets.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNanoNetsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nanoNets } from \"./app\";\nimport { executeNanoNetsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return nanoNets.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNanoNetsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { nanoNets } from \"./app\";\nimport { executeNanoNetsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof nanoNets.credential> {\n return nanoNets.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNanoNetsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-model.ts
@@ -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}).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"}
1
+ {"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const 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: AppAction<\n typeof NanoNetsCreateModelInput,\n typeof NanoNetsCreateModelOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,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,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-model.d.ts
@@ -17,9 +19,7 @@ declare const NanoNetsCreateModelOutput: z.ZodObject<{
17
19
  }, z.core.$loose>>;
18
20
  model_type: z.ZodNullable<z.ZodString>;
19
21
  }, z.core.$loose>;
20
- declare const nanoNetsCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- categories: string[];
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const nanoNetsCreateModel: AppAction<typeof NanoNetsCreateModelInput, typeof NanoNetsCreateModelOutput, typeof nanoNets.credential>;
23
23
  //#endregion
24
24
  export { nanoNetsCreateModel };
25
25
  //# sourceMappingURL=create-model.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.d.cts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-model.d.cts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-model.d.ts
@@ -17,9 +19,7 @@ declare const NanoNetsCreateModelOutput: z.ZodObject<{
17
19
  }, z.core.$loose>>;
18
20
  model_type: z.ZodNullable<z.ZodString>;
19
21
  }, z.core.$loose>;
20
- declare const nanoNetsCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- categories: string[];
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const nanoNetsCreateModel: AppAction<typeof NanoNetsCreateModelInput, typeof NanoNetsCreateModelOutput, typeof nanoNets.credential>;
23
23
  //#endregion
24
24
  export { nanoNetsCreateModel };
25
25
  //# sourceMappingURL=create-model.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.d.mts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-model.d.mts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-model.ts
@@ -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}).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"}
1
+ {"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const 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: AppAction<\n typeof NanoNetsCreateModelInput,\n typeof NanoNetsCreateModelOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,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,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuC,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,4CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-model.ts
@@ -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}).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"}
1
+ {"version":3,"file":"delete-model.cjs","names":["z","action"],"sources":["../../src/actions/delete-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const 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: AppAction<\n typeof NanoNetsDeleteModelInput,\n typeof NanoNetsDeleteModelOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,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,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-model.d.ts
@@ -8,9 +10,7 @@ declare const NanoNetsDeleteModelOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  model_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, z.core.$loose>;
11
- declare const nanoNetsDeleteModel: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- model_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const nanoNetsDeleteModel: AppAction<typeof NanoNetsDeleteModelInput, typeof NanoNetsDeleteModelOutput, typeof nanoNets.credential>;
14
14
  //#endregion
15
15
  export { nanoNetsDeleteModel };
16
16
  //# sourceMappingURL=delete-model.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-model.d.cts","names":[],"sources":["../../src/actions/delete-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"delete-model.d.cts","names":[],"sources":["../../src/actions/delete-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-model.d.ts
@@ -8,9 +10,7 @@ declare const NanoNetsDeleteModelOutput: z.ZodObject<{
8
10
  message: z.ZodNullable<z.ZodString>;
9
11
  model_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, z.core.$loose>;
11
- declare const nanoNetsDeleteModel: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- model_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const nanoNetsDeleteModel: AppAction<typeof NanoNetsDeleteModelInput, typeof NanoNetsDeleteModelOutput, typeof nanoNets.credential>;
14
14
  //#endregion
15
15
  export { nanoNetsDeleteModel };
16
16
  //# sourceMappingURL=delete-model.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-model.d.mts","names":[],"sources":["../../src/actions/delete-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"delete-model.d.mts","names":[],"sources":["../../src/actions/delete-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const nanoNetsDeleteModel = action("NANO_NETS_DELETE_MODEL", {
@@ -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}).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"}
1
+ {"version":3,"file":"delete-model.mjs","names":[],"sources":["../../src/actions/delete-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const 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: AppAction<\n typeof NanoNetsDeleteModelInput,\n typeof NanoNetsDeleteModelOutput,\n typeof nanoNets.credential\n> = 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":";;;AAcA,MAAa,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBsC,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EACzI,CAcS;CACP,QAduC,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,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-all-models.ts
@@ -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}).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,M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AWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-models.cjs","names":["z","action"],"sources":["../../src/actions/get-all-models.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const 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: AppAction<\n typeof NanoNetsGetAllModelsInput,\n typeof NanoNetsGetAllModelsOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,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,M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,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,uBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-all-models.d.ts
@@ -22,7 +24,7 @@ declare const NanoNetsGetAllModelsOutput: z.ZodObject<{
22
24
  model_type: z.ZodNullable<z.ZodString>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
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]>;
27
+ declare const nanoNetsGetAllModels: AppAction<typeof NanoNetsGetAllModelsInput, typeof NanoNetsGetAllModelsOutput, typeof nanoNets.credential>;
26
28
  //#endregion
27
29
  export { nanoNetsGetAllModels };
28
30
  //# sourceMappingURL=get-all-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-models.d.cts","names":[],"sources":["../../src/actions/get-all-models.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-all-models.d.cts","names":[],"sources":["../../src/actions/get-all-models.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-all-models.d.ts
@@ -22,7 +24,7 @@ declare const NanoNetsGetAllModelsOutput: z.ZodObject<{
22
24
  model_type: z.ZodNullable<z.ZodString>;
23
25
  }, z.core.$loose>>;
24
26
  }, z.core.$loose>;
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]>;
27
+ declare const nanoNetsGetAllModels: AppAction<typeof NanoNetsGetAllModelsInput, typeof NanoNetsGetAllModelsOutput, typeof nanoNets.credential>;
26
28
  //#endregion
27
29
  export { nanoNetsGetAllModels };
28
30
  //# sourceMappingURL=get-all-models.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-models.d.mts","names":[],"sources":["../../src/actions/get-all-models.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-all-models.d.mts","names":[],"sources":["../../src/actions/get-all-models.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-all-models.ts
@@ -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}).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,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,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,CAAC"}
1
+ {"version":3,"file":"get-all-models.mjs","names":[],"sources":["../../src/actions/get-all-models.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const 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: AppAction<\n typeof NanoNetsGetAllModelsInput,\n typeof NanoNetsGetAllModelsOutput,\n typeof nanoNets.credential\n> = 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":";;;;AAMA,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,uBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB,EACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-all-prediction-files.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-prediction-files.cjs","names":["z","action"],"sources":["../../src/actions/get-all-prediction-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllPredictionFilesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (must be >= 1)\").optional(),\n model_id: z.string().describe(\"Unique identifier of the NanoNets OCR model to fetch prediction files from\"),\n page_size: z.number().int().default(50).describe(\"Number of prediction files per page (1-500)\").optional(),\n}).describe(\"Request parameters for fetching all prediction files (inference results) from a NanoNets OCR model.\");\nconst NanoNetsGetAllPredictionFiles_PredictionLabelSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction\").nullable().optional(),\n type: z.string().default(\"field\").describe(\"Type of prediction ('field' or 'table')\").nullable().optional(),\n xmax: z.number().int().default(0).describe(\"Right x-coordinate of bounding box\").nullable().optional(),\n xmin: z.number().int().default(0).describe(\"Left x-coordinate of bounding box\").nullable().optional(),\n ymax: z.number().int().default(0).describe(\"Bottom y-coordinate of bounding box\").nullable().optional(),\n ymin: z.number().int().default(0).describe(\"Top y-coordinate of bounding box\").nullable().optional(),\n label: z.string().default(\"\").describe(\"Label/category name of the predicted field\").nullable().optional(),\n score: z.number().default(0).describe(\"Confidence score of the prediction (0-1)\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Verification status\").nullable().optional(),\n ocr_text: z.string().default(\"\").describe(\"Extracted text from OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents a predicted label with OCR extraction details.\");\nconst NanoNetsGetAllPredictionFiles_PredictionFileSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction file\").nullable().optional(),\n page: z.number().int().default(0).describe(\"Page number within the document\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Processing status of the file\").nullable().optional(),\n file_url: z.string().default(\"\").describe(\"URL of the processed file/image\").nullable().optional(),\n prediction: z.array(NanoNetsGetAllPredictionFiles_PredictionLabelSchema).describe(\"List of predicted labels with extracted OCR data\").nullable().optional(),\n request_file_id: z.string().default(\"\").describe(\"Request file ID for reference\").nullable().optional(),\n original_file_url: z.string().default(\"\").describe(\"URL of the original uploaded file\").nullable().optional(),\n}).passthrough().describe(\"Represents a single prediction file with its OCR results.\");\nexport const NanoNetsGetAllPredictionFilesOutput = z.object({\n next: z.string().describe(\"URL for the next page of results (if available)\").nullable().optional(),\n count: z.number().int().default(0).describe(\"Total number of prediction files available\").nullable().optional(),\n result: z.array(NanoNetsGetAllPredictionFiles_PredictionFileSchema).describe(\"List of prediction files with their OCR results\").nullable().optional(),\n previous: z.string().describe(\"URL for the previous page of results (if available)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all prediction files for the model.\");\n\nexport const nanoNetsGetAllPredictionFiles = action(\"NANO_NETS_GET_ALL_PREDICTION_FILES\", {\n slug: \"nano_nets-get-all-prediction-files\",\n name: \"Get All Prediction Files\",\n description: \"Retrieve all prediction files (OCR results) for a NanoNets model. Use this tool to: - List all documents/images that have been processed by an OCR model - Get prediction results including extracted text and field values - Access file URLs and processing status for each prediction The response includes prediction labels with extracted text, confidence scores, and bounding box coordinates for each processed file.\",\n input: NanoNetsGetAllPredictionFilesInput,\n output: NanoNetsGetAllPredictionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjH,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,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AC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-prediction-files.cjs","names":["z","action"],"sources":["../../src/actions/get-all-prediction-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetAllPredictionFilesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (must be >= 1)\").optional(),\n model_id: z.string().describe(\"Unique identifier of the NanoNets OCR model to fetch prediction files from\"),\n page_size: z.number().int().default(50).describe(\"Number of prediction files per page (1-500)\").optional(),\n}).describe(\"Request parameters for fetching all prediction files (inference results) from a NanoNets OCR model.\");\nconst NanoNetsGetAllPredictionFiles_PredictionLabelSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction\").nullable().optional(),\n type: z.string().default(\"field\").describe(\"Type of prediction ('field' or 'table')\").nullable().optional(),\n xmax: z.number().int().default(0).describe(\"Right x-coordinate of bounding box\").nullable().optional(),\n xmin: z.number().int().default(0).describe(\"Left x-coordinate of bounding box\").nullable().optional(),\n ymax: z.number().int().default(0).describe(\"Bottom y-coordinate of bounding box\").nullable().optional(),\n ymin: z.number().int().default(0).describe(\"Top y-coordinate of bounding box\").nullable().optional(),\n label: z.string().default(\"\").describe(\"Label/category name of the predicted field\").nullable().optional(),\n score: z.number().default(0).describe(\"Confidence score of the prediction (0-1)\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Verification status\").nullable().optional(),\n ocr_text: z.string().default(\"\").describe(\"Extracted text from OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents a predicted label with OCR extraction details.\");\nconst NanoNetsGetAllPredictionFiles_PredictionFileSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction file\").nullable().optional(),\n page: z.number().int().default(0).describe(\"Page number within the document\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Processing status of the file\").nullable().optional(),\n file_url: z.string().default(\"\").describe(\"URL of the processed file/image\").nullable().optional(),\n prediction: z.array(NanoNetsGetAllPredictionFiles_PredictionLabelSchema).describe(\"List of predicted labels with extracted OCR data\").nullable().optional(),\n request_file_id: z.string().default(\"\").describe(\"Request file ID for reference\").nullable().optional(),\n original_file_url: z.string().default(\"\").describe(\"URL of the original uploaded file\").nullable().optional(),\n}).passthrough().describe(\"Represents a single prediction file with its OCR results.\");\nexport const NanoNetsGetAllPredictionFilesOutput = z.object({\n next: z.string().describe(\"URL for the next page of results (if available)\").nullable().optional(),\n count: z.number().int().default(0).describe(\"Total number of prediction files available\").nullable().optional(),\n result: z.array(NanoNetsGetAllPredictionFiles_PredictionFileSchema).describe(\"List of prediction files with their OCR results\").nullable().optional(),\n previous: z.string().describe(\"URL for the previous page of results (if available)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all prediction files for the model.\");\n\nexport const nanoNetsGetAllPredictionFiles: AppAction<\n typeof NanoNetsGetAllPredictionFilesInput,\n typeof NanoNetsGetAllPredictionFilesOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_ALL_PREDICTION_FILES\", {\n slug: \"nano_nets-get-all-prediction-files\",\n name: \"Get All Prediction Files\",\n description: \"Retrieve all prediction files (OCR results) for a NanoNets model. Use this tool to: - List all documents/images that have been processed by an OCR model - Get prediction results including extracted text and field values - Access file URLs and processing status for each prediction The response includes prediction labels with extracted text, confidence scores, and bounding box coordinates for each processed file.\",\n input: NanoNetsGetAllPredictionFilesInput,\n output: NanoNetsGetAllPredictionFilesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC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EAAE,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,gCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-all-prediction-files.d.ts
@@ -31,11 +33,7 @@ declare const NanoNetsGetAllPredictionFilesOutput: z.ZodObject<{
31
33
  }, z.core.$loose>>>>;
32
34
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  }, z.core.$loose>;
34
- declare const nanoNetsGetAllPredictionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- model_id: string;
36
- page?: number | undefined;
37
- page_size?: number | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const nanoNetsGetAllPredictionFiles: AppAction<typeof NanoNetsGetAllPredictionFilesInput, typeof NanoNetsGetAllPredictionFilesOutput, typeof nanoNets.credential>;
39
37
  //#endregion
40
38
  export { nanoNetsGetAllPredictionFiles };
41
39
  //# sourceMappingURL=get-all-prediction-files.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-prediction-files.d.cts","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-all-prediction-files.d.cts","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-all-prediction-files.d.ts
@@ -31,11 +33,7 @@ declare const NanoNetsGetAllPredictionFilesOutput: z.ZodObject<{
31
33
  }, z.core.$loose>>>>;
32
34
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  }, z.core.$loose>;
34
- declare const nanoNetsGetAllPredictionFiles: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- model_id: string;
36
- page?: number | undefined;
37
- page_size?: number | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
+ declare const nanoNetsGetAllPredictionFiles: AppAction<typeof NanoNetsGetAllPredictionFilesInput, typeof NanoNetsGetAllPredictionFilesOutput, typeof nanoNets.credential>;
39
37
  //#endregion
40
38
  export { nanoNetsGetAllPredictionFiles };
41
39
  //# sourceMappingURL=get-all-prediction-files.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-prediction-files.d.mts","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-all-prediction-files.d.mts","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA0BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-all-prediction-files.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-prediction-files.mjs","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetAllPredictionFilesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (must be >= 1)\").optional(),\n model_id: z.string().describe(\"Unique identifier of the NanoNets OCR model to fetch prediction files from\"),\n page_size: z.number().int().default(50).describe(\"Number of prediction files per page (1-500)\").optional(),\n}).describe(\"Request parameters for fetching all prediction files (inference results) from a NanoNets OCR model.\");\nconst NanoNetsGetAllPredictionFiles_PredictionLabelSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction\").nullable().optional(),\n type: z.string().default(\"field\").describe(\"Type of prediction ('field' or 'table')\").nullable().optional(),\n xmax: z.number().int().default(0).describe(\"Right x-coordinate of bounding box\").nullable().optional(),\n xmin: z.number().int().default(0).describe(\"Left x-coordinate of bounding box\").nullable().optional(),\n ymax: z.number().int().default(0).describe(\"Bottom y-coordinate of bounding box\").nullable().optional(),\n ymin: z.number().int().default(0).describe(\"Top y-coordinate of bounding box\").nullable().optional(),\n label: z.string().default(\"\").describe(\"Label/category name of the predicted field\").nullable().optional(),\n score: z.number().default(0).describe(\"Confidence score of the prediction (0-1)\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Verification status\").nullable().optional(),\n ocr_text: z.string().default(\"\").describe(\"Extracted text from OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents a predicted label with OCR extraction details.\");\nconst NanoNetsGetAllPredictionFiles_PredictionFileSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction file\").nullable().optional(),\n page: z.number().int().default(0).describe(\"Page number within the document\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Processing status of the file\").nullable().optional(),\n file_url: z.string().default(\"\").describe(\"URL of the processed file/image\").nullable().optional(),\n prediction: z.array(NanoNetsGetAllPredictionFiles_PredictionLabelSchema).describe(\"List of predicted labels with extracted OCR data\").nullable().optional(),\n request_file_id: z.string().default(\"\").describe(\"Request file ID for reference\").nullable().optional(),\n original_file_url: z.string().default(\"\").describe(\"URL of the original uploaded file\").nullable().optional(),\n}).passthrough().describe(\"Represents a single prediction file with its OCR results.\");\nexport const NanoNetsGetAllPredictionFilesOutput = z.object({\n next: z.string().describe(\"URL for the next page of results (if available)\").nullable().optional(),\n count: z.number().int().default(0).describe(\"Total number of prediction files available\").nullable().optional(),\n result: z.array(NanoNetsGetAllPredictionFiles_PredictionFileSchema).describe(\"List of prediction files with their OCR results\").nullable().optional(),\n previous: z.string().describe(\"URL for the previous page of results (if available)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all prediction files for the model.\");\n\nexport const nanoNetsGetAllPredictionFiles = action(\"NANO_NETS_GET_ALL_PREDICTION_FILES\", {\n slug: \"nano_nets-get-all-prediction-files\",\n name: \"Get All Prediction Files\",\n description: \"Retrieve all prediction files (OCR results) for a NanoNets model. Use this tool to: - List all documents/images that have been processed by an OCR model - Get prediction results including extracted text and field values - Access file URLs and processing status for each prediction The response includes prediction labels with extracted text, confidence scores, and bounding box coordinates for each processed file.\",\n input: NanoNetsGetAllPredictionFilesInput,\n output: NanoNetsGetAllPredictionFilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjH,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC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AAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,mBAAmB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAQrF,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiD,EAAE,OAAO;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,QAAQ,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-all-prediction-files.mjs","names":[],"sources":["../../src/actions/get-all-prediction-files.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetAllPredictionFilesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (must be >= 1)\").optional(),\n model_id: z.string().describe(\"Unique identifier of the NanoNets OCR model to fetch prediction files from\"),\n page_size: z.number().int().default(50).describe(\"Number of prediction files per page (1-500)\").optional(),\n}).describe(\"Request parameters for fetching all prediction files (inference results) from a NanoNets OCR model.\");\nconst NanoNetsGetAllPredictionFiles_PredictionLabelSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction\").nullable().optional(),\n type: z.string().default(\"field\").describe(\"Type of prediction ('field' or 'table')\").nullable().optional(),\n xmax: z.number().int().default(0).describe(\"Right x-coordinate of bounding box\").nullable().optional(),\n xmin: z.number().int().default(0).describe(\"Left x-coordinate of bounding box\").nullable().optional(),\n ymax: z.number().int().default(0).describe(\"Bottom y-coordinate of bounding box\").nullable().optional(),\n ymin: z.number().int().default(0).describe(\"Top y-coordinate of bounding box\").nullable().optional(),\n label: z.string().default(\"\").describe(\"Label/category name of the predicted field\").nullable().optional(),\n score: z.number().default(0).describe(\"Confidence score of the prediction (0-1)\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Verification status\").nullable().optional(),\n ocr_text: z.string().default(\"\").describe(\"Extracted text from OCR\").nullable().optional(),\n}).passthrough().describe(\"Represents a predicted label with OCR extraction details.\");\nconst NanoNetsGetAllPredictionFiles_PredictionFileSchema = z.object({\n id: z.string().default(\"\").describe(\"Unique identifier for the prediction file\").nullable().optional(),\n page: z.number().int().default(0).describe(\"Page number within the document\").nullable().optional(),\n status: z.string().default(\"\").describe(\"Processing status of the file\").nullable().optional(),\n file_url: z.string().default(\"\").describe(\"URL of the processed file/image\").nullable().optional(),\n prediction: z.array(NanoNetsGetAllPredictionFiles_PredictionLabelSchema).describe(\"List of predicted labels with extracted OCR data\").nullable().optional(),\n request_file_id: z.string().default(\"\").describe(\"Request file ID for reference\").nullable().optional(),\n original_file_url: z.string().default(\"\").describe(\"URL of the original uploaded file\").nullable().optional(),\n}).passthrough().describe(\"Represents a single prediction file with its OCR results.\");\nexport const NanoNetsGetAllPredictionFilesOutput = z.object({\n next: z.string().describe(\"URL for the next page of results (if available)\").nullable().optional(),\n count: z.number().int().default(0).describe(\"Total number of prediction files available\").nullable().optional(),\n result: z.array(NanoNetsGetAllPredictionFiles_PredictionFileSchema).describe(\"List of prediction files with their OCR results\").nullable().optional(),\n previous: z.string().describe(\"URL for the previous page of results (if available)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing all prediction files for the model.\");\n\nexport const nanoNetsGetAllPredictionFiles: AppAction<\n typeof NanoNetsGetAllPredictionFilesInput,\n typeof NanoNetsGetAllPredictionFilesOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_ALL_PREDICTION_FILES\", {\n slug: \"nano_nets-get-all-prediction-files\",\n name: \"Get All Prediction Files\",\n description: \"Retrieve all prediction files (OCR results) for a NanoNets model. Use this tool to: - List all documents/images that have been processed by an OCR model - Get prediction results including extracted text and field values - Access file URLs and processing status for each prediction The response includes prediction labels with extracted text, confidence scores, and bounding box coordinates for each processed file.\",\n input: NanoNetsGetAllPredictionFilesInput,\n output: NanoNetsGetAllPredictionFilesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjH,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,MAAM,EAAE,OAAO,CAAC,CAAC,QA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AAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-model-details.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-model-details.cjs","names":["z","action"],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\").nullable(),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAElK,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-model-details.cjs","names":["z","action"],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetModelDetailsInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\").nullable(),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails: AppAction<\n typeof NanoNetsGetModelDetailsInput,\n typeof NanoNetsGetModelDetailsOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,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,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAAwI;AAElK,MAAa,0BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-model-details.d.ts
@@ -22,9 +24,7 @@ declare const NanoNetsGetModelDetailsOutput: z.ZodObject<{
22
24
  is_deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
25
  model_type: z.ZodNullable<z.ZodString>;
24
26
  }, z.core.$loose>;
25
- declare const nanoNetsGetModelDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- model_id: string;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const nanoNetsGetModelDetails: AppAction<typeof NanoNetsGetModelDetailsInput, typeof NanoNetsGetModelDetailsOutput, typeof nanoNets.credential>;
28
28
  //#endregion
29
29
  export { nanoNetsGetModelDetails };
30
30
  //# sourceMappingURL=get-model-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-model-details.d.cts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAa7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-model-details.d.cts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAa7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-model-details.d.ts
@@ -22,9 +24,7 @@ declare const NanoNetsGetModelDetailsOutput: z.ZodObject<{
22
24
  is_deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
25
  model_type: z.ZodNullable<z.ZodString>;
24
26
  }, z.core.$loose>;
25
- declare const nanoNetsGetModelDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- model_id: string;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const nanoNetsGetModelDetails: AppAction<typeof NanoNetsGetModelDetailsInput, typeof NanoNetsGetModelDetailsOutput, typeof nanoNets.credential>;
28
28
  //#endregion
29
29
  export { nanoNetsGetModelDetails };
30
30
  //# sourceMappingURL=get-model-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-model-details.d.mts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAa7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-model-details.d.mts","names":[],"sources":["../../src/actions/get-model-details.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAa7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-model-details.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-model-details.mjs","names":[],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetModelDetailsInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\").nullable(),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,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,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlB2C,EAAE,OAAO;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-model-details.mjs","names":[],"sources":["../../src/actions/get-model-details.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetModelDetailsInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to retrieve details.\"),\n}).describe(\"Request parameters for retrieving OCR model details.\");\nconst NanoNetsGetModelDetails_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the category.\").nullable(),\n name: z.string().describe(\"Name of the category/field.\").nullable(),\n count: z.number().int().describe(\"Count of training examples for this category.\").nullable().optional(),\n data_type: z.string().describe(\"Data type of the category.\").nullable().optional(),\n description: z.string().describe(\"Description of the category.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a category/field associated with a model.\");\nexport const NanoNetsGetModelDetailsOutput = z.object({\n email: z.string().describe(\"Email address associated with the model for uploads.\").nullable().optional(),\n state: z.number().int().describe(\"Current model state as integer (e.g., 5 for 'Model hosted').\").nullable(),\n status: z.string().describe(\"Human-readable status of the model (e.g., 'Model hosted').\").nullable().optional(),\n is_paid: z.boolean().describe(\"Whether this is a paid model.\").nullable().optional(),\n accuracy: z.number().describe(\"Model accuracy percentage (0-100).\").nullable().optional(),\n model_id: z.string().describe(\"Unique identifier of the model.\").nullable(),\n is_public: z.boolean().describe(\"Whether the model is publicly accessible.\").nullable().optional(),\n categories: z.array(NanoNetsGetModelDetails_CategoryInfoSchema).describe(\"List of categories/fields that this model can extract.\").nullable().optional(),\n is_deleted: z.boolean().describe(\"Whether the model has been deleted.\").nullable().optional(),\n model_type: z.string().describe(\"Type of the model (e.g., 'ocr').\").nullable(),\n}).passthrough().describe(\"Response schema for OCR model details.\\nContains comprehensive model information including ID, type, status, categories, and metadata.\");\n\nexport const nanoNetsGetModelDetails: AppAction<\n typeof NanoNetsGetModelDetailsInput,\n typeof NanoNetsGetModelDetailsOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_MODEL_DETAILS\", {\n slug: \"nano_nets-get-model-details\",\n name: \"Get OCR Model Details\",\n description: \"Tool to retrieve details of an OCR model. Use when you need full metadata of a model by its ID.\",\n input: NanoNetsGetModelDetailsInput,\n output: NanoNetsGetModelDetailsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACzF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAq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AAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wIAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-training-images.ts