@keystrokehq/taggun 0.1.0

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 (146) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-merchant-name.cjs +16 -0
  7. package/dist/actions/add-merchant-name.cjs.map +1 -0
  8. package/dist/actions/add-merchant-name.d.cts +9 -0
  9. package/dist/actions/add-merchant-name.d.cts.map +1 -0
  10. package/dist/actions/add-merchant-name.d.mts +9 -0
  11. package/dist/actions/add-merchant-name.d.mts.map +1 -0
  12. package/dist/actions/add-merchant-name.mjs +13 -0
  13. package/dist/actions/add-merchant-name.mjs.map +1 -0
  14. package/dist/actions/export-known-merchants.cjs +16 -0
  15. package/dist/actions/export-known-merchants.cjs.map +1 -0
  16. package/dist/actions/export-known-merchants.d.cts +9 -0
  17. package/dist/actions/export-known-merchants.d.cts.map +1 -0
  18. package/dist/actions/export-known-merchants.d.mts +9 -0
  19. package/dist/actions/export-known-merchants.d.mts.map +1 -0
  20. package/dist/actions/export-known-merchants.mjs +13 -0
  21. package/dist/actions/export-known-merchants.mjs.map +1 -0
  22. package/dist/actions/export-known-product-codes.cjs +16 -0
  23. package/dist/actions/export-known-product-codes.cjs.map +1 -0
  24. package/dist/actions/export-known-product-codes.d.cts +9 -0
  25. package/dist/actions/export-known-product-codes.d.cts.map +1 -0
  26. package/dist/actions/export-known-product-codes.d.mts +9 -0
  27. package/dist/actions/export-known-product-codes.d.mts.map +1 -0
  28. package/dist/actions/export-known-product-codes.mjs +13 -0
  29. package/dist/actions/export-known-product-codes.mjs.map +1 -0
  30. package/dist/actions/export-product-categories.cjs +16 -0
  31. package/dist/actions/export-product-categories.cjs.map +1 -0
  32. package/dist/actions/export-product-categories.d.cts +9 -0
  33. package/dist/actions/export-product-categories.d.cts.map +1 -0
  34. package/dist/actions/export-product-categories.d.mts +9 -0
  35. package/dist/actions/export-product-categories.d.mts.map +1 -0
  36. package/dist/actions/export-product-categories.mjs +13 -0
  37. package/dist/actions/export-product-categories.mjs.map +1 -0
  38. package/dist/actions/generate-merchants-csv.cjs +20 -0
  39. package/dist/actions/generate-merchants-csv.cjs.map +1 -0
  40. package/dist/actions/generate-merchants-csv.d.cts +9 -0
  41. package/dist/actions/generate-merchants-csv.d.cts.map +1 -0
  42. package/dist/actions/generate-merchants-csv.d.mts +9 -0
  43. package/dist/actions/generate-merchants-csv.d.mts.map +1 -0
  44. package/dist/actions/generate-merchants-csv.mjs +17 -0
  45. package/dist/actions/generate-merchants-csv.mjs.map +1 -0
  46. package/dist/actions/import-known-merchants.cjs +20 -0
  47. package/dist/actions/import-known-merchants.cjs.map +1 -0
  48. package/dist/actions/import-known-merchants.d.cts +9 -0
  49. package/dist/actions/import-known-merchants.d.cts.map +1 -0
  50. package/dist/actions/import-known-merchants.d.mts +9 -0
  51. package/dist/actions/import-known-merchants.d.mts.map +1 -0
  52. package/dist/actions/import-known-merchants.mjs +17 -0
  53. package/dist/actions/import-known-merchants.mjs.map +1 -0
  54. package/dist/actions/import-known-product-codes.cjs +25 -0
  55. package/dist/actions/import-known-product-codes.cjs.map +1 -0
  56. package/dist/actions/import-known-product-codes.d.cts +9 -0
  57. package/dist/actions/import-known-product-codes.d.cts.map +1 -0
  58. package/dist/actions/import-known-product-codes.d.mts +9 -0
  59. package/dist/actions/import-known-product-codes.d.mts.map +1 -0
  60. package/dist/actions/import-known-product-codes.mjs +22 -0
  61. package/dist/actions/import-known-product-codes.mjs.map +1 -0
  62. package/dist/actions/import-product-categories.cjs +25 -0
  63. package/dist/actions/import-product-categories.cjs.map +1 -0
  64. package/dist/actions/import-product-categories.d.cts +9 -0
  65. package/dist/actions/import-product-categories.d.cts.map +1 -0
  66. package/dist/actions/import-product-categories.d.mts +9 -0
  67. package/dist/actions/import-product-categories.d.mts.map +1 -0
  68. package/dist/actions/import-product-categories.mjs +22 -0
  69. package/dist/actions/import-product-categories.mjs.map +1 -0
  70. package/dist/actions/index.cjs +29 -0
  71. package/dist/actions/index.d.cts +15 -0
  72. package/dist/actions/index.d.mts +15 -0
  73. package/dist/actions/index.mjs +15 -0
  74. package/dist/actions/transcribe-receipt-encoded-simple.cjs +51 -0
  75. package/dist/actions/transcribe-receipt-encoded-simple.cjs.map +1 -0
  76. package/dist/actions/transcribe-receipt-encoded-simple.d.cts +9 -0
  77. package/dist/actions/transcribe-receipt-encoded-simple.d.cts.map +1 -0
  78. package/dist/actions/transcribe-receipt-encoded-simple.d.mts +9 -0
  79. package/dist/actions/transcribe-receipt-encoded-simple.d.mts.map +1 -0
  80. package/dist/actions/transcribe-receipt-encoded-simple.mjs +50 -0
  81. package/dist/actions/transcribe-receipt-encoded-simple.mjs.map +1 -0
  82. package/dist/actions/transcribe-receipt-encoded-verbose.cjs +50 -0
  83. package/dist/actions/transcribe-receipt-encoded-verbose.cjs.map +1 -0
  84. package/dist/actions/transcribe-receipt-encoded-verbose.d.cts +9 -0
  85. package/dist/actions/transcribe-receipt-encoded-verbose.d.cts.map +1 -0
  86. package/dist/actions/transcribe-receipt-encoded-verbose.d.mts +9 -0
  87. package/dist/actions/transcribe-receipt-encoded-verbose.d.mts.map +1 -0
  88. package/dist/actions/transcribe-receipt-encoded-verbose.mjs +47 -0
  89. package/dist/actions/transcribe-receipt-encoded-verbose.mjs.map +1 -0
  90. package/dist/actions/transcribe-receipt-file-simple.cjs +65 -0
  91. package/dist/actions/transcribe-receipt-file-simple.cjs.map +1 -0
  92. package/dist/actions/transcribe-receipt-file-simple.d.cts +9 -0
  93. package/dist/actions/transcribe-receipt-file-simple.d.cts.map +1 -0
  94. package/dist/actions/transcribe-receipt-file-simple.d.mts +9 -0
  95. package/dist/actions/transcribe-receipt-file-simple.d.mts.map +1 -0
  96. package/dist/actions/transcribe-receipt-file-simple.mjs +64 -0
  97. package/dist/actions/transcribe-receipt-file-simple.mjs.map +1 -0
  98. package/dist/actions/url-validation.cjs +37 -0
  99. package/dist/actions/url-validation.cjs.map +1 -0
  100. package/dist/actions/url-validation.d.cts +9 -0
  101. package/dist/actions/url-validation.d.cts.map +1 -0
  102. package/dist/actions/url-validation.d.mts +9 -0
  103. package/dist/actions/url-validation.d.mts.map +1 -0
  104. package/dist/actions/url-validation.mjs +36 -0
  105. package/dist/actions/url-validation.mjs.map +1 -0
  106. package/dist/actions/url-verbose.cjs +44 -0
  107. package/dist/actions/url-verbose.cjs.map +1 -0
  108. package/dist/actions/url-verbose.d.cts +9 -0
  109. package/dist/actions/url-verbose.d.cts.map +1 -0
  110. package/dist/actions/url-verbose.d.mts +9 -0
  111. package/dist/actions/url-verbose.d.mts.map +1 -0
  112. package/dist/actions/url-verbose.mjs +41 -0
  113. package/dist/actions/url-verbose.mjs.map +1 -0
  114. package/dist/actions/url.cjs +45 -0
  115. package/dist/actions/url.cjs.map +1 -0
  116. package/dist/actions/url.d.cts +9 -0
  117. package/dist/actions/url.d.cts.map +1 -0
  118. package/dist/actions/url.d.mts +9 -0
  119. package/dist/actions/url.d.mts.map +1 -0
  120. package/dist/actions/url.mjs +44 -0
  121. package/dist/actions/url.mjs.map +1 -0
  122. package/dist/app.cjs +9 -0
  123. package/dist/app.cjs.map +1 -0
  124. package/dist/app.d.cts +5 -0
  125. package/dist/app.d.cts.map +1 -0
  126. package/dist/app.d.mts +5 -0
  127. package/dist/app.d.mts.map +1 -0
  128. package/dist/app.mjs +10 -0
  129. package/dist/app.mjs.map +1 -0
  130. package/dist/catalog.cjs +15 -0
  131. package/dist/catalog.cjs.map +1 -0
  132. package/dist/catalog.d.cts +14 -0
  133. package/dist/catalog.d.cts.map +1 -0
  134. package/dist/catalog.d.mts +14 -0
  135. package/dist/catalog.d.mts.map +1 -0
  136. package/dist/catalog.mjs +15 -0
  137. package/dist/catalog.mjs.map +1 -0
  138. package/dist/execute.cjs +18 -0
  139. package/dist/execute.cjs.map +1 -0
  140. package/dist/execute.mjs +18 -0
  141. package/dist/execute.mjs.map +1 -0
  142. package/dist/index.cjs +34 -0
  143. package/dist/index.d.cts +17 -0
  144. package/dist/index.d.mts +17 -0
  145. package/dist/index.mjs +18 -0
  146. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-known-product-codes.d.ts
4
+ declare const TaggunImportKnownProductCodesInput: z.ZodTypeAny;
5
+ declare const TaggunImportKnownProductCodesOutput: z.ZodTypeAny;
6
+ declare const taggunImportKnownProductCodes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunImportKnownProductCodes };
9
+ //# sourceMappingURL=import-known-product-codes.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-known-product-codes.d.cts","names":[],"sources":["../../src/actions/import-known-product-codes.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UASY;AAAA,cAClD,mCAAA,EAAqC,CAAA,CAAE,UAEY;AAAA,cAEnD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-known-product-codes.d.ts
4
+ declare const TaggunImportKnownProductCodesInput: z.ZodTypeAny;
5
+ declare const TaggunImportKnownProductCodesOutput: z.ZodTypeAny;
6
+ declare const taggunImportKnownProductCodes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunImportKnownProductCodes };
9
+ //# sourceMappingURL=import-known-product-codes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-known-product-codes.d.mts","names":[],"sources":["../../src/actions/import-known-product-codes.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UASY;AAAA,cAClD,mCAAA,EAAqC,CAAA,CAAE,UAEY;AAAA,cAEnD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const taggunImportKnownProductCodes = action("TAGGUN_IMPORT_KNOWN_PRODUCT_CODES", {
4
+ slug: "taggun-import-known-product-codes",
5
+ name: "Import Known Product Codes",
6
+ description: "Tool to import a list of product codes in CSV or TSV format for normalization and matching. Use when you need to upload product code data to Taggun for receipt/invoice processing. The file should contain product codes with descriptions (e.g., code,description columns).",
7
+ input: z.object({
8
+ file: z.object({
9
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
10
+ s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
11
+ mimetype: z.string().describe("The MIME type of the file")
12
+ }).describe("CSV or TSV file containing product codes to import. File must be less than 20MB and contain product code data with columns like 'code' and 'description'. Accepted formats: CSV, TSV. If not provided, you may use raw_content instead.").optional(),
13
+ raw_content: z.union([z.string(), z.string()]).optional(),
14
+ raw_filename: z.string().describe("Filename for the inline content (e.g., 'product_codes.csv'). Defaults to 'product_codes.csv'.").optional(),
15
+ raw_mimetype: z.string().describe("MIME type for the inline content (e.g., 'text/csv', 'text/tab-separated-values'). Defaults to text/csv.").optional()
16
+ }).describe("Request model for importing known product codes."),
17
+ output: z.object({ result: z.string().describe("Result status of the import operation. Typically 'OK' on success.") }).describe("Response model for importing known product codes.")
18
+ });
19
+ //#endregion
20
+ export { taggunImportKnownProductCodes };
21
+
22
+ //# sourceMappingURL=import-known-product-codes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-known-product-codes.mjs","names":[],"sources":["../../src/actions/import-known-product-codes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunImportKnownProductCodesInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"CSV or TSV file containing product codes to import. File must be less than 20MB and contain product code data with columns like 'code' and 'description'. Accepted formats: CSV, TSV. If not provided, you may use raw_content instead.\").optional(),\n raw_content: z.union([z.string(), z.string()]).optional(),\n raw_filename: z.string().describe(\"Filename for the inline content (e.g., 'product_codes.csv'). Defaults to 'product_codes.csv'.\").optional(),\n raw_mimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/csv', 'text/tab-separated-values'). Defaults to text/csv.\").optional(),\n}).describe(\"Request model for importing known product codes.\");\nexport const TaggunImportKnownProductCodesOutput: z.ZodTypeAny = z.object({\n result: z.string().describe(\"Result status of the import operation. Typically 'OK' on success.\"),\n}).describe(\"Response model for importing known product codes.\");\n\nexport const taggunImportKnownProductCodes = action(\"TAGGUN_IMPORT_KNOWN_PRODUCT_CODES\", {\n slug: \"taggun-import-known-product-codes\",\n name: \"Import Known Product Codes\",\n description: \"Tool to import a list of product codes in CSV or TSV format for normalization and matching. Use when you need to upload product code data to Taggun for receipt/invoice processing. The file should contain product codes with descriptions (e.g., code,description columns).\",\n input: TaggunImportKnownProductCodesInput,\n output: TaggunImportKnownProductCodesOutput,\n});\n"],"mappings":";;AAkBA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,yOAAyO,CAAC,CAAC,SAAS;EAC9P,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACxD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,kDASH;CACP,QAT+D,EAAE,OAAO,EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,EACjG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/import-product-categories.ts
4
+ const TaggunImportProductCategoriesInput = zod.z.object({
5
+ file: zod.z.object({
6
+ name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
8
+ mimetype: zod.z.string().describe("The MIME type of the file")
9
+ }).describe("CSV or TSV file containing product categories and descriptions. File must be less than 20MB. Format: category,description. If not provided, you may use raw_content instead.").optional(),
10
+ raw_content: zod.z.union([zod.z.string(), zod.z.string()]).optional(),
11
+ raw_filename: zod.z.string().describe("Filename for the inline content (e.g., 'categories.csv'). Defaults to 'categories.csv'.").optional(),
12
+ raw_mimetype: zod.z.string().describe("MIME type for the inline content (e.g., 'text/csv', 'text/tab-separated-values'). Defaults to text/csv.").optional()
13
+ }).describe("Request model for importing product categories from a CSV or TSV file.");
14
+ const TaggunImportProductCategoriesOutput = zod.z.object({ result: zod.z.string().describe("Result of the import operation (e.g., 'OK' for success)") }).describe("Response model for product categories import operation.");
15
+ const taggunImportProductCategories = require_action.action("TAGGUN_IMPORT_PRODUCT_CATEGORIES", {
16
+ slug: "taggun-import-product-categories",
17
+ name: "Import Product Categories",
18
+ description: "Import a list of product categories and descriptions for product categorization. Accepts CSV or TSV files (less than 20MB) with category and description columns. Use this when you need to bulk import product category data for matching during receipt processing.",
19
+ input: TaggunImportProductCategoriesInput,
20
+ output: TaggunImportProductCategoriesOutput
21
+ });
22
+ //#endregion
23
+ exports.taggunImportProductCategories = taggunImportProductCategories;
24
+
25
+ //# sourceMappingURL=import-product-categories.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-product-categories.cjs","names":["z","action"],"sources":["../../src/actions/import-product-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunImportProductCategoriesInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"CSV or TSV file containing product categories and descriptions. File must be less than 20MB. Format: category,description. If not provided, you may use raw_content instead.\").optional(),\n raw_content: z.union([z.string(), z.string()]).optional(),\n raw_filename: z.string().describe(\"Filename for the inline content (e.g., 'categories.csv'). Defaults to 'categories.csv'.\").optional(),\n raw_mimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/csv', 'text/tab-separated-values'). Defaults to text/csv.\").optional(),\n}).describe(\"Request model for importing product categories from a CSV or TSV file.\");\nexport const TaggunImportProductCategoriesOutput: z.ZodTypeAny = z.object({\n result: z.string().describe(\"Result of the import operation (e.g., 'OK' for success)\"),\n}).describe(\"Response model for product categories import operation.\");\n\nexport const taggunImportProductCategories = action(\"TAGGUN_IMPORT_PRODUCT_CATEGORIES\", {\n slug: \"taggun-import-product-categories\",\n name: \"Import Product Categories\",\n description: \"Import a list of product categories and descriptions for product categorization. Accepts CSV or TSV files (less than 20MB) with category and description columns. Use this when you need to bulk import product category data for matching during receipt processing.\",\n input: TaggunImportProductCategoriesInput,\n output: TaggunImportProductCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CACnM,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACxD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACvF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-product-categories.d.ts
4
+ declare const TaggunImportProductCategoriesInput: z.ZodTypeAny;
5
+ declare const TaggunImportProductCategoriesOutput: z.ZodTypeAny;
6
+ declare const taggunImportProductCategories: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunImportProductCategories };
9
+ //# sourceMappingURL=import-product-categories.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-product-categories.d.cts","names":[],"sources":["../../src/actions/import-product-categories.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UASkC;AAAA,cACxE,mCAAA,EAAqC,CAAA,CAAE,UAEkB;AAAA,cAEzD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/import-product-categories.d.ts
4
+ declare const TaggunImportProductCategoriesInput: z.ZodTypeAny;
5
+ declare const TaggunImportProductCategoriesOutput: z.ZodTypeAny;
6
+ declare const taggunImportProductCategories: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunImportProductCategories };
9
+ //# sourceMappingURL=import-product-categories.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-product-categories.d.mts","names":[],"sources":["../../src/actions/import-product-categories.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UASkC;AAAA,cACxE,mCAAA,EAAqC,CAAA,CAAE,UAEkB;AAAA,cAEzD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const taggunImportProductCategories = action("TAGGUN_IMPORT_PRODUCT_CATEGORIES", {
4
+ slug: "taggun-import-product-categories",
5
+ name: "Import Product Categories",
6
+ description: "Import a list of product categories and descriptions for product categorization. Accepts CSV or TSV files (less than 20MB) with category and description columns. Use this when you need to bulk import product category data for matching during receipt processing.",
7
+ input: z.object({
8
+ file: z.object({
9
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
10
+ s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
11
+ mimetype: z.string().describe("The MIME type of the file")
12
+ }).describe("CSV or TSV file containing product categories and descriptions. File must be less than 20MB. Format: category,description. If not provided, you may use raw_content instead.").optional(),
13
+ raw_content: z.union([z.string(), z.string()]).optional(),
14
+ raw_filename: z.string().describe("Filename for the inline content (e.g., 'categories.csv'). Defaults to 'categories.csv'.").optional(),
15
+ raw_mimetype: z.string().describe("MIME type for the inline content (e.g., 'text/csv', 'text/tab-separated-values'). Defaults to text/csv.").optional()
16
+ }).describe("Request model for importing product categories from a CSV or TSV file."),
17
+ output: z.object({ result: z.string().describe("Result of the import operation (e.g., 'OK' for success)") }).describe("Response model for product categories import operation.")
18
+ });
19
+ //#endregion
20
+ export { taggunImportProductCategories };
21
+
22
+ //# sourceMappingURL=import-product-categories.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-product-categories.mjs","names":[],"sources":["../../src/actions/import-product-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunImportProductCategoriesInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"CSV or TSV file containing product categories and descriptions. File must be less than 20MB. Format: category,description. If not provided, you may use raw_content instead.\").optional(),\n raw_content: z.union([z.string(), z.string()]).optional(),\n raw_filename: z.string().describe(\"Filename for the inline content (e.g., 'categories.csv'). Defaults to 'categories.csv'.\").optional(),\n raw_mimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/csv', 'text/tab-separated-values'). Defaults to text/csv.\").optional(),\n}).describe(\"Request model for importing product categories from a CSV or TSV file.\");\nexport const TaggunImportProductCategoriesOutput: z.ZodTypeAny = z.object({\n result: z.string().describe(\"Result of the import operation (e.g., 'OK' for success)\"),\n}).describe(\"Response model for product categories import operation.\");\n\nexport const taggunImportProductCategories = action(\"TAGGUN_IMPORT_PRODUCT_CATEGORIES\", {\n slug: \"taggun-import-product-categories\",\n name: \"Import Product Categories\",\n description: \"Import a list of product categories and descriptions for product categorization. Accepts CSV or TSV files (less than 20MB) with category and description columns. Use this when you need to bulk import product category data for matching during receipt processing.\",\n input: TaggunImportProductCategoriesInput,\n output: TaggunImportProductCategoriesOutput,\n});\n"],"mappings":";;AAkBA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EACnM,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACxD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,wEASH;CACP,QAT+D,EAAE,OAAO,EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACvF,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
@@ -0,0 +1,29 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_add_merchant_name = require("./add-merchant-name.cjs");
3
+ const require_export_known_merchants = require("./export-known-merchants.cjs");
4
+ const require_export_known_product_codes = require("./export-known-product-codes.cjs");
5
+ const require_export_product_categories = require("./export-product-categories.cjs");
6
+ const require_generate_merchants_csv = require("./generate-merchants-csv.cjs");
7
+ const require_import_known_merchants = require("./import-known-merchants.cjs");
8
+ const require_import_known_product_codes = require("./import-known-product-codes.cjs");
9
+ const require_import_product_categories = require("./import-product-categories.cjs");
10
+ const require_transcribe_receipt_encoded_simple = require("./transcribe-receipt-encoded-simple.cjs");
11
+ const require_transcribe_receipt_encoded_verbose = require("./transcribe-receipt-encoded-verbose.cjs");
12
+ const require_transcribe_receipt_file_simple = require("./transcribe-receipt-file-simple.cjs");
13
+ const require_url = require("./url.cjs");
14
+ const require_url_validation = require("./url-validation.cjs");
15
+ const require_url_verbose = require("./url-verbose.cjs");
16
+ exports.taggunAddMerchantName = require_add_merchant_name.taggunAddMerchantName;
17
+ exports.taggunExportKnownMerchants = require_export_known_merchants.taggunExportKnownMerchants;
18
+ exports.taggunExportKnownProductCodes = require_export_known_product_codes.taggunExportKnownProductCodes;
19
+ exports.taggunExportProductCategories = require_export_product_categories.taggunExportProductCategories;
20
+ exports.taggunGenerateMerchantsCsv = require_generate_merchants_csv.taggunGenerateMerchantsCsv;
21
+ exports.taggunImportKnownMerchants = require_import_known_merchants.taggunImportKnownMerchants;
22
+ exports.taggunImportKnownProductCodes = require_import_known_product_codes.taggunImportKnownProductCodes;
23
+ exports.taggunImportProductCategories = require_import_product_categories.taggunImportProductCategories;
24
+ exports.taggunTranscribeReceiptEncodedSimple = require_transcribe_receipt_encoded_simple.taggunTranscribeReceiptEncodedSimple;
25
+ exports.taggunTranscribeReceiptEncodedVerbose = require_transcribe_receipt_encoded_verbose.taggunTranscribeReceiptEncodedVerbose;
26
+ exports.taggunTranscribeReceiptFileSimple = require_transcribe_receipt_file_simple.taggunTranscribeReceiptFileSimple;
27
+ exports.taggunUrl = require_url.taggunUrl;
28
+ exports.taggunUrlValidation = require_url_validation.taggunUrlValidation;
29
+ exports.taggunUrlVerbose = require_url_verbose.taggunUrlVerbose;
@@ -0,0 +1,15 @@
1
+ import { taggunAddMerchantName } from "./add-merchant-name.cjs";
2
+ import { taggunExportKnownMerchants } from "./export-known-merchants.cjs";
3
+ import { taggunExportKnownProductCodes } from "./export-known-product-codes.cjs";
4
+ import { taggunExportProductCategories } from "./export-product-categories.cjs";
5
+ import { taggunGenerateMerchantsCsv } from "./generate-merchants-csv.cjs";
6
+ import { taggunImportKnownMerchants } from "./import-known-merchants.cjs";
7
+ import { taggunImportKnownProductCodes } from "./import-known-product-codes.cjs";
8
+ import { taggunImportProductCategories } from "./import-product-categories.cjs";
9
+ import { taggunTranscribeReceiptEncodedSimple } from "./transcribe-receipt-encoded-simple.cjs";
10
+ import { taggunTranscribeReceiptEncodedVerbose } from "./transcribe-receipt-encoded-verbose.cjs";
11
+ import { taggunTranscribeReceiptFileSimple } from "./transcribe-receipt-file-simple.cjs";
12
+ import { taggunUrl } from "./url.cjs";
13
+ import { taggunUrlValidation } from "./url-validation.cjs";
14
+ import { taggunUrlVerbose } from "./url-verbose.cjs";
15
+ export { taggunAddMerchantName, taggunExportKnownMerchants, taggunExportKnownProductCodes, taggunExportProductCategories, taggunGenerateMerchantsCsv, taggunImportKnownMerchants, taggunImportKnownProductCodes, taggunImportProductCategories, taggunTranscribeReceiptEncodedSimple, taggunTranscribeReceiptEncodedVerbose, taggunTranscribeReceiptFileSimple, taggunUrl, taggunUrlValidation, taggunUrlVerbose };
@@ -0,0 +1,15 @@
1
+ import { taggunAddMerchantName } from "./add-merchant-name.mjs";
2
+ import { taggunExportKnownMerchants } from "./export-known-merchants.mjs";
3
+ import { taggunExportKnownProductCodes } from "./export-known-product-codes.mjs";
4
+ import { taggunExportProductCategories } from "./export-product-categories.mjs";
5
+ import { taggunGenerateMerchantsCsv } from "./generate-merchants-csv.mjs";
6
+ import { taggunImportKnownMerchants } from "./import-known-merchants.mjs";
7
+ import { taggunImportKnownProductCodes } from "./import-known-product-codes.mjs";
8
+ import { taggunImportProductCategories } from "./import-product-categories.mjs";
9
+ import { taggunTranscribeReceiptEncodedSimple } from "./transcribe-receipt-encoded-simple.mjs";
10
+ import { taggunTranscribeReceiptEncodedVerbose } from "./transcribe-receipt-encoded-verbose.mjs";
11
+ import { taggunTranscribeReceiptFileSimple } from "./transcribe-receipt-file-simple.mjs";
12
+ import { taggunUrl } from "./url.mjs";
13
+ import { taggunUrlValidation } from "./url-validation.mjs";
14
+ import { taggunUrlVerbose } from "./url-verbose.mjs";
15
+ export { taggunAddMerchantName, taggunExportKnownMerchants, taggunExportKnownProductCodes, taggunExportProductCategories, taggunGenerateMerchantsCsv, taggunImportKnownMerchants, taggunImportKnownProductCodes, taggunImportProductCategories, taggunTranscribeReceiptEncodedSimple, taggunTranscribeReceiptEncodedVerbose, taggunTranscribeReceiptFileSimple, taggunUrl, taggunUrlValidation, taggunUrlVerbose };
@@ -0,0 +1,15 @@
1
+ import { taggunAddMerchantName } from "./add-merchant-name.mjs";
2
+ import { taggunExportKnownMerchants } from "./export-known-merchants.mjs";
3
+ import { taggunExportKnownProductCodes } from "./export-known-product-codes.mjs";
4
+ import { taggunExportProductCategories } from "./export-product-categories.mjs";
5
+ import { taggunGenerateMerchantsCsv } from "./generate-merchants-csv.mjs";
6
+ import { taggunImportKnownMerchants } from "./import-known-merchants.mjs";
7
+ import { taggunImportKnownProductCodes } from "./import-known-product-codes.mjs";
8
+ import { taggunImportProductCategories } from "./import-product-categories.mjs";
9
+ import { taggunTranscribeReceiptEncodedSimple } from "./transcribe-receipt-encoded-simple.mjs";
10
+ import { taggunTranscribeReceiptEncodedVerbose } from "./transcribe-receipt-encoded-verbose.mjs";
11
+ import { taggunTranscribeReceiptFileSimple } from "./transcribe-receipt-file-simple.mjs";
12
+ import { taggunUrl } from "./url.mjs";
13
+ import { taggunUrlValidation } from "./url-validation.mjs";
14
+ import { taggunUrlVerbose } from "./url-verbose.mjs";
15
+ export { taggunAddMerchantName, taggunExportKnownMerchants, taggunExportKnownProductCodes, taggunExportProductCategories, taggunGenerateMerchantsCsv, taggunImportKnownMerchants, taggunImportKnownProductCodes, taggunImportProductCategories, taggunTranscribeReceiptEncodedSimple, taggunTranscribeReceiptEncodedVerbose, taggunTranscribeReceiptFileSimple, taggunUrl, taggunUrlValidation, taggunUrlVerbose };
@@ -0,0 +1,51 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/transcribe-receipt-encoded-simple.ts
4
+ const TaggunTranscribeReceiptEncodedSimpleInput = zod.z.object({
5
+ image: zod.z.string().describe("Base64 encoded image data of the receipt or invoice. Supported formats: JPEG, PNG, PDF, GIF. The string should contain only the base64-encoded data without any data URI prefix."),
6
+ refresh: zod.z.boolean().default(false).describe("Set to true to bypass Taggun's cache and force fresh OCR processing of the image. Default is false (uses cached results if available).").optional(),
7
+ filename: zod.z.string().describe("Filename for reference purposes (e.g., 'receipt.jpg'). Required for proper processing."),
8
+ language: zod.z.string().describe("Set language as a hint for OCR processing. Leave empty for auto detect. Supported languages: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th, ar").optional(),
9
+ incognito: zod.z.boolean().default(false).describe("Set true to avoid saving the receipt in storage for privacy purposes. Default is false.").optional(),
10
+ ipAddress: zod.z.string().describe("IP Address of the end user for fraud detection purposes").optional(),
11
+ containerId: zod.z.string().describe("Tag a request with a container ID for fraud detection purposes. Maximum 50 characters.").optional(),
12
+ contentType: zod.z.string().describe("MIME type of the image file. Required. Supported types: 'image/jpeg', 'image/png', 'application/pdf', 'image/gif'."),
13
+ extractTime: zod.z.boolean().default(false).describe("Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000. Default is false.").optional(),
14
+ ignoreMerchantName: zod.z.string().describe("Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.").optional()
15
+ }).describe("Request model for processing a receipt or invoice from a base64 encoded image.");
16
+ const TaggunTranscribeReceiptEncodedSimple_LineItemSchema = zod.z.object({
17
+ name: zod.z.string().describe("Item description or name, as detected by OCR").nullable().optional(),
18
+ price: zod.z.number().describe("Unit price of the item, if available").nullable().optional(),
19
+ quantity: zod.z.number().describe("Quantity purchased, if available").nullable().optional(),
20
+ totalAmount: zod.z.number().describe("Total amount for this line item").nullable().optional()
21
+ }).describe("A single line item from the receipt or invoice.");
22
+ const TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema = zod.z.object({
23
+ date: zod.z.number().describe("Confidence score for date").nullable().optional(),
24
+ total: zod.z.number().describe("Confidence score for total amount").nullable().optional(),
25
+ merchant_name: zod.z.number().describe("Confidence score for merchant name").nullable().optional(),
26
+ invoice_number: zod.z.number().describe("Confidence score for invoice number").nullable().optional()
27
+ }).describe("Confidence scores for various extracted fields.");
28
+ const TaggunTranscribeReceiptEncodedSimpleOutput = zod.z.object({
29
+ date: zod.z.string().describe("Detected purchase date in ISO 8601 format").nullable().optional(),
30
+ rawText: zod.z.string().describe("Raw OCR text extracted from the document").nullable().optional(),
31
+ currency: zod.z.string().describe("Detected currency code (ISO 4217)").nullable().optional(),
32
+ lineItems: zod.z.array(TaggunTranscribeReceiptEncodedSimple_LineItemSchema).describe("List of detected line items").nullable().optional(),
33
+ taxAmount: zod.z.number().describe("Detected total tax amount").nullable().optional(),
34
+ tipAmount: zod.z.number().describe("Detected tip amount, if any").nullable().optional(),
35
+ confidence: TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema.nullable().optional(),
36
+ totalAmount: zod.z.number().describe("Detected total amount").nullable().optional(),
37
+ merchantName: zod.z.string().describe("Detected merchant or store name").nullable().optional(),
38
+ invoiceNumber: zod.z.string().describe("Detected invoice or receipt number").nullable().optional(),
39
+ subTotalAmount: zod.z.number().describe("Detected subtotal amount before tax").nullable().optional()
40
+ }).describe("Response model for basic data extracted from a receipt or invoice via base64 encoded image.");
41
+ const taggunTranscribeReceiptEncodedSimple = require_action.action("TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_SIMPLE", {
42
+ slug: "taggun-transcribe-receipt-encoded-simple",
43
+ name: "Transcribe Receipt from Base64 Encoded Image",
44
+ description: "Extract structured data from a receipt or invoice using base64 encoded image data. Provide a base64 encoded image (JPEG, PNG, PDF, GIF) along with filename and content type to get back extracted fields like total amount, date, merchant name, tax, line items, and confidence scores. Use this when you have receipt/invoice image data already encoded as base64 and need to digitize the data. The API uses machine learning OCR to detect and extract key fields automatically.",
45
+ input: TaggunTranscribeReceiptEncodedSimpleInput,
46
+ output: TaggunTranscribeReceiptEncodedSimpleOutput
47
+ });
48
+ //#endregion
49
+ exports.taggunTranscribeReceiptEncodedSimple = taggunTranscribeReceiptEncodedSimple;
50
+
51
+ //# sourceMappingURL=transcribe-receipt-encoded-simple.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-simple.cjs","names":["z","action"],"sources":["../../src/actions/transcribe-receipt-encoded-simple.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunTranscribeReceiptEncodedSimpleInput: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Base64 encoded image data of the receipt or invoice. Supported formats: JPEG, PNG, PDF, GIF. The string should contain only the base64-encoded data without any data URI prefix.\"),\n refresh: z.boolean().default(false).describe(\"Set to true to bypass Taggun's cache and force fresh OCR processing of the image. Default is false (uses cached results if available).\").optional(),\n filename: z.string().describe(\"Filename for reference purposes (e.g., 'receipt.jpg'). Required for proper processing.\"),\n language: z.string().describe(\"Set language as a hint for OCR processing. Leave empty for auto detect. Supported languages: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th, ar\").optional(),\n incognito: z.boolean().default(false).describe(\"Set true to avoid saving the receipt in storage for privacy purposes. Default is false.\").optional(),\n ipAddress: z.string().describe(\"IP Address of the end user for fraud detection purposes\").optional(),\n containerId: z.string().describe(\"Tag a request with a container ID for fraud detection purposes. Maximum 50 characters.\").optional(),\n contentType: z.string().describe(\"MIME type of the image file. Required. Supported types: 'image/jpeg', 'image/png', 'application/pdf', 'image/gif'.\"),\n extractTime: z.boolean().default(false).describe(\"Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000. Default is false.\").optional(),\n ignoreMerchantName: z.string().describe(\"Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.\").optional(),\n}).describe(\"Request model for processing a receipt or invoice from a base64 encoded image.\");\nconst TaggunTranscribeReceiptEncodedSimple_LineItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Item description or name, as detected by OCR\").nullable().optional(),\n price: z.number().describe(\"Unit price of the item, if available\").nullable().optional(),\n quantity: z.number().describe(\"Quantity purchased, if available\").nullable().optional(),\n totalAmount: z.number().describe(\"Total amount for this line item\").nullable().optional(),\n}).describe(\"A single line item from the receipt or invoice.\");\nconst TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema: z.ZodTypeAny = z.object({\n date: z.number().describe(\"Confidence score for date\").nullable().optional(),\n total: z.number().describe(\"Confidence score for total amount\").nullable().optional(),\n merchant_name: z.number().describe(\"Confidence score for merchant name\").nullable().optional(),\n invoice_number: z.number().describe(\"Confidence score for invoice number\").nullable().optional(),\n}).describe(\"Confidence scores for various extracted fields.\");\nexport const TaggunTranscribeReceiptEncodedSimpleOutput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Detected purchase date in ISO 8601 format\").nullable().optional(),\n rawText: z.string().describe(\"Raw OCR text extracted from the document\").nullable().optional(),\n currency: z.string().describe(\"Detected currency code (ISO 4217)\").nullable().optional(),\n lineItems: z.array(TaggunTranscribeReceiptEncodedSimple_LineItemSchema).describe(\"List of detected line items\").nullable().optional(),\n taxAmount: z.number().describe(\"Detected total tax amount\").nullable().optional(),\n tipAmount: z.number().describe(\"Detected tip amount, if any\").nullable().optional(),\n confidence: TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema.nullable().optional(),\n totalAmount: z.number().describe(\"Detected total amount\").nullable().optional(),\n merchantName: z.string().describe(\"Detected merchant or store name\").nullable().optional(),\n invoiceNumber: z.string().describe(\"Detected invoice or receipt number\").nullable().optional(),\n subTotalAmount: z.number().describe(\"Detected subtotal amount before tax\").nullable().optional(),\n}).describe(\"Response model for basic data extracted from a receipt or invoice via base64 encoded image.\");\n\nexport const taggunTranscribeReceiptEncodedSimple = action(\"TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_SIMPLE\", {\n slug: \"taggun-transcribe-receipt-encoded-simple\",\n name: \"Transcribe Receipt from Base64 Encoded Image\",\n description: \"Extract structured data from a receipt or invoice using base64 encoded image data. Provide a base64 encoded image (JPEG, PNG, PDF, GIF) along with filename and content type to get back extracted fields like total amount, date, merchant name, tax, line items, and confidence scores. Use this when you have receipt/invoice image data already encoded as base64 and need to digitize the data. The API uses machine learning OCR to detect and extract key fields automatically.\",\n input: TaggunTranscribeReceiptEncodedSimpleInput,\n output: TaggunTranscribeReceiptEncodedSimpleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;CAC7M,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAChM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACtH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CAC9L,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACpI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH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ncodedSimpleInput: z.ZodTypeAny;
5
+ declare const TaggunTranscribeReceiptEncodedSimpleOutput: z.ZodTypeAny;
6
+ declare const taggunTranscribeReceiptEncodedSimple: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunTranscribeReceiptEncodedSimple };
9
+ //# sourceMappingURL=transcribe-receipt-encoded-simple.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-simple.d.cts","names":[],"sources":["../../src/actions/transcribe-receipt-encoded-simple.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAWmC;AAAA,cAahF,0CAAA,EAA4C,CAAA,CAAE,UAY+C;AAAA,cAE7F,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/transcribe-receipt-encoded-simple.d.ts
4
+ declare const TaggunTranscribeReceiptEncodedSimpleInput: z.ZodTypeAny;
5
+ declare const TaggunTranscribeReceiptEncodedSimpleOutput: z.ZodTypeAny;
6
+ declare const taggunTranscribeReceiptEncodedSimple: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunTranscribeReceiptEncodedSimple };
9
+ //# sourceMappingURL=transcribe-receipt-encoded-simple.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-simple.d.mts","names":[],"sources":["../../src/actions/transcribe-receipt-encoded-simple.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAWmC;AAAA,cAahF,0CAAA,EAA4C,CAAA,CAAE,UAY+C;AAAA,cAE7F,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,50 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/transcribe-receipt-encoded-simple.ts
4
+ const TaggunTranscribeReceiptEncodedSimpleInput = z.object({
5
+ image: z.string().describe("Base64 encoded image data of the receipt or invoice. Supported formats: JPEG, PNG, PDF, GIF. The string should contain only the base64-encoded data without any data URI prefix."),
6
+ refresh: z.boolean().default(false).describe("Set to true to bypass Taggun's cache and force fresh OCR processing of the image. Default is false (uses cached results if available).").optional(),
7
+ filename: z.string().describe("Filename for reference purposes (e.g., 'receipt.jpg'). Required for proper processing."),
8
+ language: z.string().describe("Set language as a hint for OCR processing. Leave empty for auto detect. Supported languages: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th, ar").optional(),
9
+ incognito: z.boolean().default(false).describe("Set true to avoid saving the receipt in storage for privacy purposes. Default is false.").optional(),
10
+ ipAddress: z.string().describe("IP Address of the end user for fraud detection purposes").optional(),
11
+ containerId: z.string().describe("Tag a request with a container ID for fraud detection purposes. Maximum 50 characters.").optional(),
12
+ contentType: z.string().describe("MIME type of the image file. Required. Supported types: 'image/jpeg', 'image/png', 'application/pdf', 'image/gif'."),
13
+ extractTime: z.boolean().default(false).describe("Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000. Default is false.").optional(),
14
+ ignoreMerchantName: z.string().describe("Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.").optional()
15
+ }).describe("Request model for processing a receipt or invoice from a base64 encoded image.");
16
+ const TaggunTranscribeReceiptEncodedSimple_LineItemSchema = z.object({
17
+ name: z.string().describe("Item description or name, as detected by OCR").nullable().optional(),
18
+ price: z.number().describe("Unit price of the item, if available").nullable().optional(),
19
+ quantity: z.number().describe("Quantity purchased, if available").nullable().optional(),
20
+ totalAmount: z.number().describe("Total amount for this line item").nullable().optional()
21
+ }).describe("A single line item from the receipt or invoice.");
22
+ const TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema = z.object({
23
+ date: z.number().describe("Confidence score for date").nullable().optional(),
24
+ total: z.number().describe("Confidence score for total amount").nullable().optional(),
25
+ merchant_name: z.number().describe("Confidence score for merchant name").nullable().optional(),
26
+ invoice_number: z.number().describe("Confidence score for invoice number").nullable().optional()
27
+ }).describe("Confidence scores for various extracted fields.");
28
+ const taggunTranscribeReceiptEncodedSimple = action("TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_SIMPLE", {
29
+ slug: "taggun-transcribe-receipt-encoded-simple",
30
+ name: "Transcribe Receipt from Base64 Encoded Image",
31
+ description: "Extract structured data from a receipt or invoice using base64 encoded image data. Provide a base64 encoded image (JPEG, PNG, PDF, GIF) along with filename and content type to get back extracted fields like total amount, date, merchant name, tax, line items, and confidence scores. Use this when you have receipt/invoice image data already encoded as base64 and need to digitize the data. The API uses machine learning OCR to detect and extract key fields automatically.",
32
+ input: TaggunTranscribeReceiptEncodedSimpleInput,
33
+ output: z.object({
34
+ date: z.string().describe("Detected purchase date in ISO 8601 format").nullable().optional(),
35
+ rawText: z.string().describe("Raw OCR text extracted from the document").nullable().optional(),
36
+ currency: z.string().describe("Detected currency code (ISO 4217)").nullable().optional(),
37
+ lineItems: z.array(TaggunTranscribeReceiptEncodedSimple_LineItemSchema).describe("List of detected line items").nullable().optional(),
38
+ taxAmount: z.number().describe("Detected total tax amount").nullable().optional(),
39
+ tipAmount: z.number().describe("Detected tip amount, if any").nullable().optional(),
40
+ confidence: TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema.nullable().optional(),
41
+ totalAmount: z.number().describe("Detected total amount").nullable().optional(),
42
+ merchantName: z.string().describe("Detected merchant or store name").nullable().optional(),
43
+ invoiceNumber: z.string().describe("Detected invoice or receipt number").nullable().optional(),
44
+ subTotalAmount: z.number().describe("Detected subtotal amount before tax").nullable().optional()
45
+ }).describe("Response model for basic data extracted from a receipt or invoice via base64 encoded image.")
46
+ });
47
+ //#endregion
48
+ export { taggunTranscribeReceiptEncodedSimple };
49
+
50
+ //# sourceMappingURL=transcribe-receipt-encoded-simple.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-simple.mjs","names":[],"sources":["../../src/actions/transcribe-receipt-encoded-simple.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunTranscribeReceiptEncodedSimpleInput: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Base64 encoded image data of the receipt or invoice. Supported formats: JPEG, PNG, PDF, GIF. The string should contain only the base64-encoded data without any data URI prefix.\"),\n refresh: z.boolean().default(false).describe(\"Set to true to bypass Taggun's cache and force fresh OCR processing of the image. Default is false (uses cached results if available).\").optional(),\n filename: z.string().describe(\"Filename for reference purposes (e.g., 'receipt.jpg'). Required for proper processing.\"),\n language: z.string().describe(\"Set language as a hint for OCR processing. Leave empty for auto detect. Supported languages: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th, ar\").optional(),\n incognito: z.boolean().default(false).describe(\"Set true to avoid saving the receipt in storage for privacy purposes. Default is false.\").optional(),\n ipAddress: z.string().describe(\"IP Address of the end user for fraud detection purposes\").optional(),\n containerId: z.string().describe(\"Tag a request with a container ID for fraud detection purposes. Maximum 50 characters.\").optional(),\n contentType: z.string().describe(\"MIME type of the image file. Required. Supported types: 'image/jpeg', 'image/png', 'application/pdf', 'image/gif'.\"),\n extractTime: z.boolean().default(false).describe(\"Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000. Default is false.\").optional(),\n ignoreMerchantName: z.string().describe(\"Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.\").optional(),\n}).describe(\"Request model for processing a receipt or invoice from a base64 encoded image.\");\nconst TaggunTranscribeReceiptEncodedSimple_LineItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Item description or name, as detected by OCR\").nullable().optional(),\n price: z.number().describe(\"Unit price of the item, if available\").nullable().optional(),\n quantity: z.number().describe(\"Quantity purchased, if available\").nullable().optional(),\n totalAmount: z.number().describe(\"Total amount for this line item\").nullable().optional(),\n}).describe(\"A single line item from the receipt or invoice.\");\nconst TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema: z.ZodTypeAny = z.object({\n date: z.number().describe(\"Confidence score for date\").nullable().optional(),\n total: z.number().describe(\"Confidence score for total amount\").nullable().optional(),\n merchant_name: z.number().describe(\"Confidence score for merchant name\").nullable().optional(),\n invoice_number: z.number().describe(\"Confidence score for invoice number\").nullable().optional(),\n}).describe(\"Confidence scores for various extracted fields.\");\nexport const TaggunTranscribeReceiptEncodedSimpleOutput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Detected purchase date in ISO 8601 format\").nullable().optional(),\n rawText: z.string().describe(\"Raw OCR text extracted from the document\").nullable().optional(),\n currency: z.string().describe(\"Detected currency code (ISO 4217)\").nullable().optional(),\n lineItems: z.array(TaggunTranscribeReceiptEncodedSimple_LineItemSchema).describe(\"List of detected line items\").nullable().optional(),\n taxAmount: z.number().describe(\"Detected total tax amount\").nullable().optional(),\n tipAmount: z.number().describe(\"Detected tip amount, if any\").nullable().optional(),\n confidence: TaggunTranscribeReceiptEncodedSimple_ConfidenceSchema.nullable().optional(),\n totalAmount: z.number().describe(\"Detected total amount\").nullable().optional(),\n merchantName: z.string().describe(\"Detected merchant or store name\").nullable().optional(),\n invoiceNumber: z.string().describe(\"Detected invoice or receipt number\").nullable().optional(),\n subTotalAmount: z.number().describe(\"Detected subtotal amount before tax\").nullable().optional(),\n}).describe(\"Response model for basic data extracted from a receipt or invoice via base64 encoded image.\");\n\nexport const taggunTranscribeReceiptEncodedSimple = action(\"TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_SIMPLE\", {\n slug: \"taggun-transcribe-receipt-encoded-simple\",\n name: \"Transcribe Receipt from Base64 Encoded Image\",\n description: \"Extract structured data from a receipt or invoice using base64 encoded image data. Provide a base64 encoded image (JPEG, PNG, PDF, GIF) along with filename and content type to get back extracted fields like total amount, date, merchant name, tax, line items, and confidence scores. Use this when you have receipt/invoice image data already encoded as base64 and need to digitize the data. The API uses machine learning OCR to detect and extract key fields automatically.\",\n input: TaggunTranscribeReceiptEncodedSimpleInput,\n output: TaggunTranscribeReceiptEncodedSimpleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0D,EAAE,OAAO;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;CAC7M,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAChM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACtH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CAC9L,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACpI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACrJ,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACnL,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,sDAAoE,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE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,SAAS,CAAC,CAAC,SAAS;EAClF,YAAY,sDAAsD,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,6FAOF;AACV,CAAC"}
@@ -0,0 +1,50 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/transcribe-receipt-encoded-verbose.ts
4
+ const TaggunTranscribeReceiptEncodedVerboseInput = zod.z.object({
5
+ image: zod.z.string().describe("Base64 encoded receipt image. Must meet minimum size requirements (larger than 1x1 pixels)."),
6
+ refresh: zod.z.boolean().default(false).describe("Set true to force re-process image transcription if receipt is already in storage.").optional(),
7
+ filename: zod.z.string().describe("The filename for the receipt image."),
8
+ incognito: zod.z.boolean().default(false).describe("Set true to avoid saving the receipt in storage.").optional(),
9
+ containerId: zod.z.string().describe("Tag a request with a container ID for fraud detection purposes.").optional(),
10
+ contentType: zod.z.string().describe("MIME type of the image (e.g., image/jpeg, image/png)."),
11
+ extractTime: zod.z.boolean().default(false).describe("Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000.").optional(),
12
+ extractLineItems: zod.z.boolean().default(false).describe("Set true to return product line items in an array if found on the receipt.").optional(),
13
+ ignoreMerchantName: zod.z.string().describe("Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.").optional()
14
+ }).describe("Request model for verbose extraction from a base64 encoded receipt image.");
15
+ const TaggunTranscribeReceiptEncodedVerboseOutput = zod.z.object({
16
+ date: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Date information with confidence, text, and regions.").nullable().optional(),
17
+ text: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Full OCR text with regions (contains 'text' field with string and 'regions' array).").nullable().optional(),
18
+ amounts: zod.z.array(zod.z.unknown()).describe("List of all detected amounts with details, text, currency, and regions.").nullable().optional(),
19
+ dueDate: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Due date information with confidence, text, and regions.").nullable().optional(),
20
+ elapsed: zod.z.number().describe("Processing time in milliseconds.").nullable().optional(),
21
+ numbers: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of all detected numbers on the receipt.").nullable().optional(),
22
+ entities: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structured entities including merchant info and line items.").nullable().optional(),
23
+ location: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Geolocation data including city, country, coordinates, and timezone.").nullable().optional(),
24
+ taxAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tax amount with confidence, text, currency code, and regions.").nullable().optional(),
25
+ paidAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Paid amount with confidence, text, currency code, and regions.").nullable().optional(),
26
+ trackingId: zod.z.string().describe("Tracking ID for the request.").nullable().optional(),
27
+ totalAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Total amount with confidence, text, currency code, and regions.").nullable().optional(),
28
+ merchantName: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant name with confidence and text.").nullable().optional(),
29
+ merchantPhone: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant phone number with confidence.").nullable().optional(),
30
+ merchantTypes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant types/categories with confidence information.").nullable().optional(),
31
+ paymentMethod: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Payment method details with confidence.").nullable().optional(),
32
+ discountAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Discount amount with confidence, text, currency code, and regions.").nullable().optional(),
33
+ targetRotation: zod.z.number().describe("Recommended rotation angle for the image.").nullable().optional(),
34
+ confidenceLevel: zod.z.number().describe("Overall confidence level (0.0 to 1.0).").nullable().optional(),
35
+ merchantAddress: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant address with confidence and text.").nullable().optional(),
36
+ merchantWebsite: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant website with confidence.").nullable().optional(),
37
+ merchantExternalId: zod.z.string().describe("External ID for the merchant.").nullable().optional(),
38
+ merchantCountryCode: zod.z.record(zod.z.string(), zod.z.unknown()).describe("ISO country code for the merchant with confidence information.").nullable().optional()
39
+ }).describe("Response model for verbose receipt extraction from base64 encoded image.\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and confidence levels.");
40
+ const taggunTranscribeReceiptEncodedVerbose = require_action.action("TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_VERBOSE", {
41
+ slug: "taggun-transcribe-receipt-encoded-verbose",
42
+ name: "Transcribe Receipt Encoded Verbose",
43
+ description: "Tool to transcribe a receipt using base64 encoded image in JSON payload and return detailed results. Use when you have a base64 encoded receipt image and require comprehensive output including line items, merchant details, and confidence levels. The image must be larger than 1x1 pixels to avoid validation errors.",
44
+ input: TaggunTranscribeReceiptEncodedVerboseInput,
45
+ output: TaggunTranscribeReceiptEncodedVerboseOutput
46
+ });
47
+ //#endregion
48
+ exports.taggunTranscribeReceiptEncodedVerbose = taggunTranscribeReceiptEncodedVerbose;
49
+
50
+ //# sourceMappingURL=transcribe-receipt-encoded-verbose.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-verbose.cjs","names":["z","action"],"sources":["../../src/actions/transcribe-receipt-encoded-verbose.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunTranscribeReceiptEncodedVerboseInput: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Base64 encoded receipt image. Must meet minimum size requirements (larger than 1x1 pixels).\"),\n refresh: z.boolean().default(false).describe(\"Set true to force re-process image transcription if receipt is already in storage.\").optional(),\n filename: z.string().describe(\"The filename for the receipt image.\"),\n incognito: z.boolean().default(false).describe(\"Set true to avoid saving the receipt in storage.\").optional(),\n containerId: z.string().describe(\"Tag a request with a container ID for fraud detection purposes.\").optional(),\n contentType: z.string().describe(\"MIME type of the image (e.g., image/jpeg, image/png).\"),\n extractTime: z.boolean().default(false).describe(\"Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000.\").optional(),\n extractLineItems: z.boolean().default(false).describe(\"Set true to return product line items in an array if found on the receipt.\").optional(),\n ignoreMerchantName: z.string().describe(\"Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.\").optional(),\n}).describe(\"Request model for verbose extraction from a base64 encoded receipt image.\");\nexport const TaggunTranscribeReceiptEncodedVerboseOutput: z.ZodTypeAny = z.object({\n date: z.record(z.string(), z.unknown()).describe(\"Date information with confidence, text, and regions.\").nullable().optional(),\n text: z.record(z.string(), z.unknown()).describe(\"Full OCR text with regions (contains 'text' field with string and 'regions' array).\").nullable().optional(),\n amounts: z.array(z.unknown()).describe(\"List of all detected amounts with details, text, currency, and regions.\").nullable().optional(),\n dueDate: z.record(z.string(), z.unknown()).describe(\"Due date information with confidence, text, and regions.\").nullable().optional(),\n elapsed: z.number().describe(\"Processing time in milliseconds.\").nullable().optional(),\n numbers: z.array(z.record(z.string(), z.unknown())).describe(\"List of all detected numbers on the receipt.\").nullable().optional(),\n entities: z.record(z.string(), z.unknown()).describe(\"Structured entities including merchant info and line items.\").nullable().optional(),\n location: z.record(z.string(), z.unknown()).describe(\"Geolocation data including city, country, coordinates, and timezone.\").nullable().optional(),\n taxAmount: z.record(z.string(), z.unknown()).describe(\"Tax amount with confidence, text, currency code, and regions.\").nullable().optional(),\n paidAmount: z.record(z.string(), z.unknown()).describe(\"Paid amount with confidence, text, currency code, and regions.\").nullable().optional(),\n trackingId: z.string().describe(\"Tracking ID for the request.\").nullable().optional(),\n totalAmount: z.record(z.string(), z.unknown()).describe(\"Total amount with confidence, text, currency code, and regions.\").nullable().optional(),\n merchantName: z.record(z.string(), z.unknown()).describe(\"Merchant name with confidence and text.\").nullable().optional(),\n merchantPhone: z.record(z.string(), z.unknown()).describe(\"Merchant phone number with confidence.\").nullable().optional(),\n merchantTypes: z.record(z.string(), z.unknown()).describe(\"Merchant types/categories with confidence information.\").nullable().optional(),\n paymentMethod: z.record(z.string(), z.unknown()).describe(\"Payment method details with confidence.\").nullable().optional(),\n discountAmount: z.record(z.string(), z.unknown()).describe(\"Discount amount with confidence, text, currency code, and regions.\").nullable().optional(),\n targetRotation: z.number().describe(\"Recommended rotation angle for the image.\").nullable().optional(),\n confidenceLevel: z.number().describe(\"Overall confidence level (0.0 to 1.0).\").nullable().optional(),\n merchantAddress: z.record(z.string(), z.unknown()).describe(\"Merchant address with confidence and text.\").nullable().optional(),\n merchantWebsite: z.record(z.string(), z.unknown()).describe(\"Merchant website with confidence.\").nullable().optional(),\n merchantExternalId: z.string().describe(\"External ID for the merchant.\").nullable().optional(),\n merchantCountryCode: z.record(z.string(), z.unknown()).describe(\"ISO country code for the merchant with confidence information.\").nullable().optional(),\n}).describe(\"Response model for verbose receipt extraction from base64 encoded image.\\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and confidence levels.\");\n\nexport const taggunTranscribeReceiptEncodedVerbose = action(\"TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_VERBOSE\", {\n slug: \"taggun-transcribe-receipt-encoded-verbose\",\n name: \"Transcribe Receipt Encoded Verbose\",\n description: \"Tool to transcribe a receipt using base64 encoded image in JSON payload and return detailed results. Use when you have a base64 encoded receipt image and require comprehensive output including line items, merchant details, and confidence levels. The image must be larger than 1x1 pixels to avoid validation errors.\",\n input: TaggunTranscribeReceiptEncodedVerboseInput,\n output: TaggunTranscribeReceiptEncodedVerboseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IA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AAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,sLAAsL;AAElM,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/transcribe-receipt-encoded-verbose.d.ts
4
+ declare const TaggunTranscribeReceiptEncodedVerboseInput: z.ZodTypeAny;
5
+ declare const TaggunTranscribeReceiptEncodedVerboseOutput: z.ZodTypeAny;
6
+ declare const taggunTranscribeReceiptEncodedVerbose: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunTranscribeReceiptEncodedVerbose };
9
+ //# sourceMappingURL=transcribe-receipt-encoded-verbose.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-verbose.d.cts","names":[],"sources":["../../src/actions/transcribe-receipt-encoded-verbose.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAU6B;AAAA,cAC3E,2CAAA,EAA6C,CAAA,CAAE,UAwBuI;AAAA,cAEtL,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/transcribe-receipt-encoded-verbose.d.ts
4
+ declare const TaggunTranscribeReceiptEncodedVerboseInput: z.ZodTypeAny;
5
+ declare const TaggunTranscribeReceiptEncodedVerboseOutput: z.ZodTypeAny;
6
+ declare const taggunTranscribeReceiptEncodedVerbose: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunTranscribeReceiptEncodedVerbose };
9
+ //# sourceMappingURL=transcribe-receipt-encoded-verbose.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-verbose.d.mts","names":[],"sources":["../../src/actions/transcribe-receipt-encoded-verbose.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAU6B;AAAA,cAC3E,2CAAA,EAA6C,CAAA,CAAE,UAwBuI;AAAA,cAEtL,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,47 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const taggunTranscribeReceiptEncodedVerbose = action("TAGGUN_TRANSCRIBE_RECEIPT_ENCODED_VERBOSE", {
4
+ slug: "taggun-transcribe-receipt-encoded-verbose",
5
+ name: "Transcribe Receipt Encoded Verbose",
6
+ description: "Tool to transcribe a receipt using base64 encoded image in JSON payload and return detailed results. Use when you have a base64 encoded receipt image and require comprehensive output including line items, merchant details, and confidence levels. The image must be larger than 1x1 pixels to avoid validation errors.",
7
+ input: z.object({
8
+ image: z.string().describe("Base64 encoded receipt image. Must meet minimum size requirements (larger than 1x1 pixels)."),
9
+ refresh: z.boolean().default(false).describe("Set true to force re-process image transcription if receipt is already in storage.").optional(),
10
+ filename: z.string().describe("The filename for the receipt image."),
11
+ incognito: z.boolean().default(false).describe("Set true to avoid saving the receipt in storage.").optional(),
12
+ containerId: z.string().describe("Tag a request with a container ID for fraud detection purposes.").optional(),
13
+ contentType: z.string().describe("MIME type of the image (e.g., image/jpeg, image/png)."),
14
+ extractTime: z.boolean().default(false).describe("Set true to return time if found on the receipt. Otherwise, the time is always set to 12:00:00.000.").optional(),
15
+ extractLineItems: z.boolean().default(false).describe("Set true to return product line items in an array if found on the receipt.").optional(),
16
+ ignoreMerchantName: z.string().describe("Ignore this merchant name if detected on the receipt. Use this field to avoid detecting the customer name as the merchant name.").optional()
17
+ }).describe("Request model for verbose extraction from a base64 encoded receipt image."),
18
+ output: z.object({
19
+ date: z.record(z.string(), z.unknown()).describe("Date information with confidence, text, and regions.").nullable().optional(),
20
+ text: z.record(z.string(), z.unknown()).describe("Full OCR text with regions (contains 'text' field with string and 'regions' array).").nullable().optional(),
21
+ amounts: z.array(z.unknown()).describe("List of all detected amounts with details, text, currency, and regions.").nullable().optional(),
22
+ dueDate: z.record(z.string(), z.unknown()).describe("Due date information with confidence, text, and regions.").nullable().optional(),
23
+ elapsed: z.number().describe("Processing time in milliseconds.").nullable().optional(),
24
+ numbers: z.array(z.record(z.string(), z.unknown())).describe("List of all detected numbers on the receipt.").nullable().optional(),
25
+ entities: z.record(z.string(), z.unknown()).describe("Structured entities including merchant info and line items.").nullable().optional(),
26
+ location: z.record(z.string(), z.unknown()).describe("Geolocation data including city, country, coordinates, and timezone.").nullable().optional(),
27
+ taxAmount: z.record(z.string(), z.unknown()).describe("Tax amount with confidence, text, currency code, and regions.").nullable().optional(),
28
+ paidAmount: z.record(z.string(), z.unknown()).describe("Paid amount with confidence, text, currency code, and regions.").nullable().optional(),
29
+ trackingId: z.string().describe("Tracking ID for the request.").nullable().optional(),
30
+ totalAmount: z.record(z.string(), z.unknown()).describe("Total amount with confidence, text, currency code, and regions.").nullable().optional(),
31
+ merchantName: z.record(z.string(), z.unknown()).describe("Merchant name with confidence and text.").nullable().optional(),
32
+ merchantPhone: z.record(z.string(), z.unknown()).describe("Merchant phone number with confidence.").nullable().optional(),
33
+ merchantTypes: z.record(z.string(), z.unknown()).describe("Merchant types/categories with confidence information.").nullable().optional(),
34
+ paymentMethod: z.record(z.string(), z.unknown()).describe("Payment method details with confidence.").nullable().optional(),
35
+ discountAmount: z.record(z.string(), z.unknown()).describe("Discount amount with confidence, text, currency code, and regions.").nullable().optional(),
36
+ targetRotation: z.number().describe("Recommended rotation angle for the image.").nullable().optional(),
37
+ confidenceLevel: z.number().describe("Overall confidence level (0.0 to 1.0).").nullable().optional(),
38
+ merchantAddress: z.record(z.string(), z.unknown()).describe("Merchant address with confidence and text.").nullable().optional(),
39
+ merchantWebsite: z.record(z.string(), z.unknown()).describe("Merchant website with confidence.").nullable().optional(),
40
+ merchantExternalId: z.string().describe("External ID for the merchant.").nullable().optional(),
41
+ merchantCountryCode: z.record(z.string(), z.unknown()).describe("ISO country code for the merchant with confidence information.").nullable().optional()
42
+ }).describe("Response model for verbose receipt extraction from base64 encoded image.\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and confidence levels.")
43
+ });
44
+ //#endregion
45
+ export { taggunTranscribeReceiptEncodedVerbose };
46
+
47
+ //# sourceMappingURL=transcribe-receipt-encoded-verbose.mjs.map