@keystrokehq/nano_nets 0.1.5 → 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 -15
  6. package/dist/actions/create-model.d.cts.map +1 -1
  7. package/dist/actions/create-model.d.mts +3 -15
  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 -15
  14. package/dist/actions/delete-model.d.cts.map +1 -1
  15. package/dist/actions/delete-model.d.mts +3 -15
  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 -13
  22. package/dist/actions/get-all-models.d.cts.map +1 -1
  23. package/dist/actions/get-all-models.d.mts +3 -13
  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 -17
  30. package/dist/actions/get-all-prediction-files.d.cts.map +1 -1
  31. package/dist/actions/get-all-prediction-files.d.mts +3 -17
  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 -15
  38. package/dist/actions/get-model-details.d.cts.map +1 -1
  39. package/dist/actions/get-model-details.d.mts +3 -15
  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 -17
  46. package/dist/actions/get-training-images.d.cts.map +1 -1
  47. package/dist/actions/get-training-images.d.mts +3 -17
  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 -13
  54. package/dist/actions/get-workflows.d.cts.map +1 -1
  55. package/dist/actions/get-workflows.d.mts +3 -13
  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 -17
  62. package/dist/actions/list-documents.d.cts.map +1 -1
  63. package/dist/actions/list-documents.d.mts +3 -17
  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 -17
  70. package/dist/actions/update-model.d.cts.map +1 -1
  71. package/dist/actions/update-model.d.mts +3 -17
  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 -20
  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 -20
  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 -16
  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 -16
  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 +2 -2
  92. package/dist/app.cjs.map +1 -1
  93. package/dist/app.d.cts +4 -6
  94. package/dist/app.d.cts.map +1 -1
  95. package/dist/app.d.mts +4 -6
  96. package/dist/app.d.mts.map +1 -1
  97. package/dist/app.mjs +0 -1
  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,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,21 +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<"nano_nets", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>;
27
+ declare const nanoNetsGetModelDetails: AppAction<typeof NanoNetsGetModelDetailsInput, typeof NanoNetsGetModelDetailsOutput, typeof nanoNets.credential>;
40
28
  //#endregion
41
29
  export { nanoNetsGetModelDetails };
42
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,21 +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<"nano_nets", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>;
27
+ declare const nanoNetsGetModelDetails: AppAction<typeof NanoNetsGetModelDetailsInput, typeof NanoNetsGetModelDetailsOutput, typeof nanoNets.credential>;
40
28
  //#endregion
41
29
  export { nanoNetsGetModelDetails };
42
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,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,CAA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C,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
@@ -1 +1 @@
1
- {"version":3,"file":"get-training-images.cjs","names":["z","action"],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetTrainingImagesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed). Defaults to 1.\").optional(),\n model_id: z.string().describe(\"Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response.\"),\n page_size: z.number().int().default(50).describe(\"Number of images to return per page. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for retrieving training images of an OCR model.\");\nconst NanoNetsGetTrainingImages_ImageItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\n feedback: z.array(z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable()).describe(\"List of feedback annotations for the image\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = z.object({\n next: z.string().describe(\"URL to the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of training images\").nullable(),\n images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe(\"List of training images and their metadata\"),\n previous: z.string().describe(\"URL to the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-training-images.cjs","names":["z","action"],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetTrainingImagesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed). Defaults to 1.\").optional(),\n model_id: z.string().describe(\"Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response.\"),\n page_size: z.number().int().default(50).describe(\"Number of images to return per page. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for retrieving training images of an OCR model.\");\nconst NanoNetsGetTrainingImages_ImageItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\n feedback: z.array(z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable()).describe(\"List of feedback annotations for the image\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = z.object({\n next: z.string().describe(\"URL to the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of training images\").nullable(),\n images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe(\"List of training images and their metadata\"),\n previous: z.string().describe(\"URL to the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages: AppAction<\n typeof NanoNetsGetTrainingImagesInput,\n typeof NanoNetsGetTrainingImagesOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,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AA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,4BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-training-images.d.ts
@@ -19,23 +21,7 @@ declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>;
20
22
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  }, z.core.$loose>;
22
- declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- model_id: string;
24
- page?: number | undefined;
25
- page_size?: number | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
24
+ declare const nanoNetsGetTrainingImages: AppAction<typeof NanoNetsGetTrainingImagesInput, typeof NanoNetsGetTrainingImagesOutput, typeof nanoNets.credential>;
39
25
  //#endregion
40
26
  export { nanoNetsGetTrainingImages };
41
27
  //# sourceMappingURL=get-training-images.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-training-images.d.cts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-training-images.d.cts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-training-images.d.ts
@@ -19,23 +21,7 @@ declare const NanoNetsGetTrainingImagesOutput: z.ZodObject<{
19
21
  }, z.core.$loose>>;
20
22
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  }, z.core.$loose>;
22
- declare const nanoNetsGetTrainingImages: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- model_id: string;
24
- page?: number | undefined;
25
- page_size?: number | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
24
+ declare const nanoNetsGetTrainingImages: AppAction<typeof NanoNetsGetTrainingImagesInput, typeof NanoNetsGetTrainingImagesOutput, typeof nanoNets.credential>;
39
25
  //#endregion
40
26
  export { nanoNetsGetTrainingImages };
41
27
  //# sourceMappingURL=get-training-images.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-training-images.d.mts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-training-images.d.mts","names":[],"sources":["../../src/actions/get-training-images.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,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-training-images.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-training-images.mjs","names":[],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetTrainingImagesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed). Defaults to 1.\").optional(),\n model_id: z.string().describe(\"Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response.\"),\n page_size: z.number().int().default(50).describe(\"Number of images to return per page. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for retrieving training images of an OCR model.\");\nconst NanoNetsGetTrainingImages_ImageItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\n feedback: z.array(z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable()).describe(\"List of feedback annotations for the image\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = z.object({\n next: z.string().describe(\"URL to the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of training images\").nullable(),\n images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe(\"List of training images and their metadata\"),\n previous: z.string().describe(\"URL to the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC5D,UAAU,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAQxE,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC7E,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-training-images.mjs","names":[],"sources":["../../src/actions/get-training-images.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetTrainingImagesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (1-indexed). Defaults to 1.\").optional(),\n model_id: z.string().describe(\"Unique identifier (UUID) of the OCR model. Obtain this from the GET_ALL_MODELS action or model creation response.\"),\n page_size: z.number().int().default(50).describe(\"Number of images to return per page. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for retrieving training images of an OCR model.\");\nconst NanoNetsGetTrainingImages_ImageItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the image\").nullable(),\n url: z.string().describe(\"URL of the training image\").nullable(),\n status: z.string().describe(\"Status of the image\").nullable(),\n feedback: z.array(z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable()).describe(\"List of feedback annotations for the image\").nullable().optional(),\n filename: z.string().describe(\"Filename of the image\").nullable(),\n uploaded: z.string().describe(\"Upload timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Schema for a single training image metadata.\");\nexport const NanoNetsGetTrainingImagesOutput = z.object({\n next: z.string().describe(\"URL to the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of training images\").nullable(),\n images: z.array(NanoNetsGetTrainingImages_ImageItemSchema).describe(\"List of training images and their metadata\"),\n previous: z.string().describe(\"URL to the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving training images of an OCR model.\");\n\nexport const nanoNetsGetTrainingImages: AppAction<\n typeof NanoNetsGetTrainingImagesInput,\n typeof NanoNetsGetTrainingImagesOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_TRAINING_IMAGES\", {\n slug: \"nano_nets-get-training-images\",\n name: \"Get OCR Training Images\",\n description: \"Tool to retrieve training images for an OCR model. Use when you need to page through images associated with a model before training or analysis.\",\n input: NanoNetsGetTrainingImagesInput,\n output: NanoNetsGetTrainingImagesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,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OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC7E,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
@@ -1,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-workflows.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-workflows.cjs","names":["z","action"],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetWorkflowsInput = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC1G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-workflows.cjs","names":["z","action"],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetWorkflowsInput = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows: AppAction<\n typeof NanoNetsGetWorkflowsInput,\n typeof NanoNetsGetWorkflowsOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC1G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-workflows.d.ts
@@ -10,19 +12,7 @@ declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
10
12
  description: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>;
12
14
  }, z.core.$loose>;
13
- declare const nanoNetsGetWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>;
15
+ declare const nanoNetsGetWorkflows: AppAction<typeof NanoNetsGetWorkflowsInput, typeof NanoNetsGetWorkflowsOutput, typeof nanoNets.credential>;
26
16
  //#endregion
27
17
  export { nanoNetsGetWorkflows };
28
18
  //# sourceMappingURL=get-workflows.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-workflows.d.cts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-workflows.d.ts
@@ -10,19 +12,7 @@ declare const NanoNetsGetWorkflowsOutput: z.ZodObject<{
10
12
  description: z.ZodNullable<z.ZodString>;
11
13
  }, z.core.$loose>>;
12
14
  }, z.core.$loose>;
13
- declare const nanoNetsGetWorkflows: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>;
15
+ declare const nanoNetsGetWorkflows: AppAction<typeof NanoNetsGetWorkflowsInput, typeof NanoNetsGetWorkflowsOutput, typeof nanoNets.credential>;
26
16
  //#endregion
27
17
  export { nanoNetsGetWorkflows };
28
18
  //# sourceMappingURL=get-workflows.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-workflows.d.mts","names":[],"sources":["../../src/actions/get-workflows.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,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-workflows.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-workflows.mjs","names":[],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsGetWorkflowsInput = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC1G,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,MAAM;EAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAKrE,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,WAAW,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-workflows.mjs","names":[],"sources":["../../src/actions/get-workflows.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsGetWorkflowsInput = z.object({}).describe(\"Request schema for listing all workflows.\");\nconst NanoNetsGetWorkflows_WorkflowSchema = z.object({\n id: z.string().describe(\"Unique identifier for the workflow.\").nullable(),\n type: z.string().describe(\"Type of the workflow (e.g., 'invoice', 'receipt').\").nullable(),\n settings: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown()), z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n description: z.string().describe(\"Description of the workflow.\").nullable(),\n}).passthrough().describe(\"Schema for a single workflow in Nanonets.\");\nexport const NanoNetsGetWorkflowsOutput = z.object({\n workflows: z.array(NanoNetsGetWorkflows_WorkflowSchema).describe(\"List of workflows in the account.\"),\n}).passthrough().describe(\"Response schema for listing workflows.\");\n\nexport const nanoNetsGetWorkflows: AppAction<\n typeof NanoNetsGetWorkflowsInput,\n typeof NanoNetsGetWorkflowsOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_GET_WORKFLOWS\", {\n slug: \"nano_nets-get-workflows\",\n name: \"Get Workflows\",\n description: \"Tool to retrieve a list of all workflows in your Nanonets account. Use when you need to inventory or inspect all configured workflows.\",\n input: NanoNetsGetWorkflowsInput,\n output: NanoNetsGetWorkflowsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC1G,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,MAAM;EAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS;CAC7I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAKrE,MAAa,uBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwC,EAAE,OAAO,EACjD,WAAW,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
@@ -1,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/list-documents.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsListDocumentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\").nullable(),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput = z.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;AACtK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,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C,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-documents.cjs","names":["z","action"],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsListDocumentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\").nullable(),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput = z.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments: AppAction<\n typeof NanoNetsListDocumentsInput,\n typeof NanoNetsListDocumentsOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: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SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,wBAITC,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/list-documents.d.ts
@@ -31,23 +33,7 @@ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
31
33
  page_size: z.ZodNullable<z.ZodNumber>;
32
34
  total_count: z.ZodNullable<z.ZodNumber>;
33
35
  }, z.core.$loose>;
34
- declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- workflow_id: string;
36
- page?: number | undefined;
37
- limit?: number | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
45
- connectionId: z.ZodString;
46
- entityId: z.ZodString;
47
- instanceId: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- generic_api_key: z.ZodString;
50
- }, z.core.$strip>>]>;
36
+ declare const nanoNetsListDocuments: AppAction<typeof NanoNetsListDocumentsInput, typeof NanoNetsListDocumentsOutput, typeof nanoNets.credential>;
51
37
  //#endregion
52
38
  export { nanoNetsListDocuments };
53
39
  //# sourceMappingURL=list-documents.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-documents.d.cts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-documents.d.ts
@@ -31,23 +33,7 @@ declare const NanoNetsListDocumentsOutput: z.ZodObject<{
31
33
  page_size: z.ZodNullable<z.ZodNumber>;
32
34
  total_count: z.ZodNullable<z.ZodNumber>;
33
35
  }, z.core.$loose>;
34
- declare const nanoNetsListDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- workflow_id: string;
36
- page?: number | undefined;
37
- limit?: number | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
45
- connectionId: z.ZodString;
46
- entityId: z.ZodString;
47
- instanceId: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- generic_api_key: z.ZodString;
50
- }, z.core.$strip>>]>;
36
+ declare const nanoNetsListDocuments: AppAction<typeof NanoNetsListDocumentsInput, typeof NanoNetsListDocumentsOutput, typeof nanoNets.credential>;
51
37
  //#endregion
52
38
  export { nanoNetsListDocuments };
53
39
  //# sourceMappingURL=list-documents.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-documents.d.mts","names":[],"sources":["../../src/actions/list-documents.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cA2B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,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/list-documents.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsListDocumentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\").nullable(),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput = z.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;AACtK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uCAAuC,EAAE,OAAO;CACpD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,uCAAuC,EAAE,OAAO;CACpD,OAAO,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,QAA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C,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-documents.mjs","names":[],"sources":["../../src/actions/list-documents.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsListDocumentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Defaults to 1 if not specified.\").optional(),\n limit: z.number().int().describe(\"Number of documents per page. Defaults to 50 if not specified.\").optional(),\n workflow_id: z.string().describe(\"The unique identifier (UUID) for the NanoNets workflow. Obtain this from the GET_WORKFLOWS action or from the NanoNets dashboard.\"),\n}).describe(\"Request schema for listing documents processed by a workflow.\");\nconst NanoNetsListDocuments_PageDataSchema = z.object({\n fields: z.unknown().describe(\"Extracted fields from the page.\").nullable().optional(),\n tables: z.unknown().describe(\"Extracted tables from the page.\").nullable().optional(),\n}).passthrough().describe(\"Schema for extracted data from a document page.\");\nconst NanoNetsListDocuments_DocumentPageSchema = z.object({\n data: NanoNetsListDocuments_PageDataSchema.nullable().optional(),\n page_id: z.string().describe(\"Unique identifier for the document page.\").nullable(),\n image_url: z.string().describe(\"URL of the page image.\").nullable().optional(),\n page_number: z.number().int().describe(\"Page number within the document (0-indexed).\").nullable(),\n}).passthrough().describe(\"Schema for a page within a document.\");\nconst NanoNetsListDocuments_DocumentSchema = z.object({\n pages: z.array(NanoNetsListDocuments_DocumentPageSchema).describe(\"List of processed pages within the document.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the document (e.g., 'success', 'processing', 'failed').\").nullable(),\n metadata: z.string().describe(\"JSON string containing additional document metadata (e.g., email info).\").nullable().optional(),\n document_id: z.string().describe(\"Unique identifier for the document.\").nullable(),\n uploaded_at: z.string().describe(\"Timestamp when the document was uploaded (ISO 8601).\").nullable(),\n raw_document_url: z.string().describe(\"URL path to the raw uploaded document.\").nullable().optional(),\n assigned_reviewers: z.array(z.string()).describe(\"List of assigned reviewer IDs.\").nullable().optional(),\n verification_stage: z.string().describe(\"Current verification stage identifier.\").nullable().optional(),\n verification_status: z.string().describe(\"Status of human verification (e.g., 'success', 'pending').\").nullable().optional(),\n original_document_name: z.string().describe(\"Original filename of the uploaded document.\").nullable().optional(),\n}).passthrough().describe(\"Schema for a document in the workflow.\");\nexport const NanoNetsListDocumentsOutput = z.object({\n page_no: z.number().int().describe(\"Current page number.\").nullable(),\n documents: z.array(NanoNetsListDocuments_DocumentSchema).describe(\"List of documents returned by the API.\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of documents per page.\").nullable(),\n total_count: z.number().int().describe(\"Total number of documents in the workflow.\").nullable(),\n}).passthrough().describe(\"Response schema containing paginated list of workflow documents.\");\n\nexport const nanoNetsListDocuments: AppAction<\n typeof NanoNetsListDocumentsInput,\n typeof NanoNetsListDocumentsOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_LIST_DOCUMENTS\", {\n slug: \"nano_nets-list-documents\",\n name: \"List Workflow Documents\",\n description: \"Retrieve a paginated list of documents processed by a NanoNets workflow. Returns document metadata including processing status, upload timestamp, verification status, and page details. Use this to monitor document processing progress or access extracted data from previously uploaded documents.\",\n input: NanoNetsListDocumentsInput,\n output: NanoNetsListDocumentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;AACtK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uCAAuC,EAAE,OAAO;CACpD,QAAQ,EAAE,QAAQ,CAAC,C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AAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhByC,EAAE,OAAO;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;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/update-model.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.cjs","names":["z","action"],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NanoNetsUpdateModelInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC3K,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-model.cjs","names":["z","action"],"sources":["../../src/actions/update-model.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nanoNets } from \"../app\";\n\nexport const NanoNetsUpdateModelInput = z.object({\n model_id: z.string().describe(\"Unique identifier of the OCR model to update AI guidelines for.\"),\n field_instructions: z.string().describe(\"Instructions for the AI model to follow during field predictions. Provide guidance on how to extract and validate field data.\"),\n table_instructions: z.string().describe(\"Instructions for the AI model to follow during table predictions. Provide guidance on how to identify and extract tabular data.\"),\n}).describe(\"Request schema for updating an OCR model's AI Agent guidelines.\\nOnly works for Instant Learning models.\");\nexport const NanoNetsUpdateModelOutput = z.object({\n result: z.string().describe(\"Result status from the update operation.\").nullable().optional(),\n message: z.string().describe(\"Status message of the update operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the AI Agent guidelines update.\");\n\nexport const nanoNetsUpdateModel: AppAction<\n typeof NanoNetsUpdateModelInput,\n typeof NanoNetsUpdateModelOutput,\n typeof nanoNets.credential\n> = action(\"NANO_NETS_UPDATE_MODEL\", {\n slug: \"nano_nets-update-model\",\n name: \"Update Model AI Guidelines\",\n description: \"Update AI Agent guidelines for an OCR model. Sets instructions for how the AI should handle field and table predictions. Only works for Instant Learning models. Use this to customize extraction behavior for specific document types.\",\n input: NanoNetsUpdateModelInput,\n output: NanoNetsUpdateModelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACvK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AAC3K,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-model.d.ts
@@ -10,23 +12,7 @@ declare const NanoNetsUpdateModelOutput: z.ZodObject<{
10
12
  result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
14
  }, z.core.$loose>;
13
- declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- model_id: string;
15
- field_instructions: string;
16
- table_instructions: string;
17
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- }, z.core.$strip>>]>;
15
+ declare const nanoNetsUpdateModel: AppAction<typeof NanoNetsUpdateModelInput, typeof NanoNetsUpdateModelOutput, typeof nanoNets.credential>;
30
16
  //#endregion
31
17
  export { nanoNetsUpdateModel };
32
18
  //# sourceMappingURL=update-model.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-model.d.cts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nanoNets } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-model.d.ts
@@ -10,23 +12,7 @@ declare const NanoNetsUpdateModelOutput: z.ZodObject<{
10
12
  result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
14
  }, z.core.$loose>;
13
- declare const nanoNetsUpdateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- model_id: string;
15
- field_instructions: string;
16
- table_instructions: string;
17
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- generic_api_key: z.ZodString;
23
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"nano_nets", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- }, z.core.$strip>>]>;
15
+ declare const nanoNetsUpdateModel: AppAction<typeof NanoNetsUpdateModelInput, typeof NanoNetsUpdateModelOutput, typeof nanoNets.credential>;
30
16
  //#endregion
31
17
  export { nanoNetsUpdateModel };
32
18
  //# sourceMappingURL=update-model.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-model.d.mts","names":[],"sources":["../../src/actions/update-model.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const nanoNetsUpdateModel = action("NANO_NETS_UPDATE_MODEL", {