@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 @@
1
+ {"version":3,"file":"transcribe-receipt-encoded-verbose.mjs","names":[],"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":";;AAyCA,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzCsE,EAAE,OAAO;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;EACxH,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC5I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACnE,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACxF,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACjK,kBAAkB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC7I,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACtL,CAAC,CAAC,CAAC,SAAS,2EA+BH;CACP,QA/BuE,EAAE,OAAO;EAChF,MAAM,EAAE,OAAO,EAAE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E,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,sLAOF;AACV,CAAC"}
@@ -0,0 +1,65 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/transcribe-receipt-file-simple.ts
4
+ const TaggunTranscribeReceiptFileSimpleInput = 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("Receipt or invoice image file to upload (less than 20MB). Supported formats: PDF, JPG, PNG, GIF, HEIC."),
10
+ near: zod.z.string().describe("A geo location to search for merchant. Typically in the format of city, state, country.").optional(),
11
+ userId: zod.z.string().describe("Tag a request with a user ID so that duplicate receipts by the same user can be detected").optional(),
12
+ refresh: zod.z.boolean().default(false).describe("Set true to force re-process image transcription if the receipt is already in storage. Default is false.").optional(),
13
+ language: zod.z.enum([
14
+ "en",
15
+ "es",
16
+ "fr",
17
+ "jp",
18
+ "he",
19
+ "iw",
20
+ "et",
21
+ "lv",
22
+ "lt",
23
+ "fi",
24
+ "el",
25
+ "zh",
26
+ "th",
27
+ "ar"
28
+ ]).describe("Supported languages for receipt OCR processing.").optional(),
29
+ incognito: zod.z.boolean().default(false).describe("Set true to avoid saving the receipt in storage. Default is false.").optional(),
30
+ ipAddress: zod.z.string().describe("IP Address of the end user for fraud detection purposes").optional(),
31
+ containerId: zod.z.string().describe("Tag a request with a container ID for fraud detection purposes").optional(),
32
+ 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(),
33
+ referenceId: zod.z.string().describe("Tag a request with a unique reference ID for feedback/training and receipt similarity check purposes").optional(),
34
+ subAccountId: zod.z.string().describe("Tag a request with sub-account ID for billing purposes").optional(),
35
+ 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()
36
+ }).describe("Request model for transcribing receipt data from an uploaded file.");
37
+ const TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema = zod.z.object({
38
+ data: zod.z.unknown().describe("Extracted data value").nullable().optional(),
39
+ confidenceLevel: zod.z.number().describe("Confidence score for the extracted field (0.0 to 1.0)").nullable().optional()
40
+ }).describe("Confidence data structure for extracted fields.");
41
+ const TaggunTranscribeReceiptFileSimpleOutput = zod.z.object({
42
+ date: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
43
+ error: zod.z.string().describe("Error message if processing failed").nullable().optional(),
44
+ taxAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
45
+ totalAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
46
+ merchantCity: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
47
+ merchantName: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
48
+ merchantState: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
49
+ merchantTypes: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
50
+ confidenceLevel: zod.z.number().describe("Overall confidence level for the extraction (0.0 to 1.0)").nullable().optional(),
51
+ merchantAddress: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
52
+ merchantPostalCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
53
+ merchantCountryCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional()
54
+ }).describe("Response model containing extracted receipt data.");
55
+ const taggunTranscribeReceiptFileSimple = require_action.action("TAGGUN_TRANSCRIBE_RECEIPT_FILE_SIMPLE", {
56
+ slug: "taggun-transcribe-receipt-file-simple",
57
+ name: "Transcribe Receipt File (Simple)",
58
+ description: "Tool to upload a receipt or invoice image file and extract basic data including merchant name, total amount, tax amount, and date. Use when you need to digitize receipt data from a file (PDF, JPG, PNG, GIF, HEIC up to 20MB). The API uses OCR to detect and extract key fields.",
59
+ input: TaggunTranscribeReceiptFileSimpleInput,
60
+ output: TaggunTranscribeReceiptFileSimpleOutput
61
+ });
62
+ //#endregion
63
+ exports.taggunTranscribeReceiptFileSimple = taggunTranscribeReceiptFileSimple;
64
+
65
+ //# sourceMappingURL=transcribe-receipt-file-simple.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-file-simple.cjs","names":["z","action"],"sources":["../../src/actions/transcribe-receipt-file-simple.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunTranscribeReceiptFileSimpleInput: 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(\"Receipt or invoice image file to upload (less than 20MB). Supported formats: PDF, JPG, PNG, GIF, HEIC.\"),\n near: z.string().describe(\"A geo location to search for merchant. Typically in the format of city, state, country.\").optional(),\n userId: z.string().describe(\"Tag a request with a user ID so that duplicate receipts by the same user can be detected\").optional(),\n refresh: z.boolean().default(false).describe(\"Set true to force re-process image transcription if the receipt is already in storage. Default is false.\").optional(),\n language: z.enum([\"en\", \"es\", \"fr\", \"jp\", \"he\", \"iw\", \"et\", \"lv\", \"lt\", \"fi\", \"el\", \"zh\", \"th\", \"ar\"]).describe(\"Supported languages for receipt OCR processing.\").optional(),\n incognito: z.boolean().default(false).describe(\"Set true to avoid saving the receipt in storage. 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\").optional(),\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 referenceId: z.string().describe(\"Tag a request with a unique reference ID for feedback/training and receipt similarity check purposes\").optional(),\n subAccountId: z.string().describe(\"Tag a request with sub-account ID for billing purposes\").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 transcribing receipt data from an uploaded file.\");\nconst TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema: z.ZodTypeAny = z.object({\n data: z.unknown().describe(\"Extracted data value\").nullable().optional(),\n confidenceLevel: z.number().describe(\"Confidence score for the extracted field (0.0 to 1.0)\").nullable().optional(),\n}).describe(\"Confidence data structure for extracted fields.\");\nexport const TaggunTranscribeReceiptFileSimpleOutput: z.ZodTypeAny = z.object({\n date: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if processing failed\").nullable().optional(),\n taxAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n totalAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantCity: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantName: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantState: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantTypes: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n confidenceLevel: z.number().describe(\"Overall confidence level for the extraction (0.0 to 1.0)\").nullable().optional(),\n merchantAddress: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantPostalCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantCountryCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n}).describe(\"Response model containing extracted receipt data.\");\n\nexport const taggunTranscribeReceiptFileSimple = action(\"TAGGUN_TRANSCRIBE_RECEIPT_FILE_SIMPLE\", {\n slug: \"taggun-transcribe-receipt-file-simple\",\n name: \"Transcribe Receipt File (Simple)\",\n description: \"Tool to upload a receipt or invoice image file and extract basic data including merchant name, total amount, tax amount, and date. Use when you need to digitize receipt data from a file (PDF, JPG, PNG, GIF, HEIC up to 20MB). The API uses OCR to detect and extract key fields.\",\n input: TaggunTranscribeReceiptFileSimpleInput,\n output: TaggunTranscribeReceiptFileSimpleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,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,wGAAwG;CAClH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC9H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACjI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAClK,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAA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AC,SAAS;CACzF,cAAc,uDAAuD,SAAS,CAAC,CAAC,SAAS;CACzF,eAAe,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC1F,eAAe,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC1F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,iBAAiB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC5F,oBAAoB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC/F,qBAAqB,uDAAuD,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,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-file-simple.d.ts
4
+ declare const TaggunTranscribeReceiptFileSimpleInput: z.ZodTypeAny;
5
+ declare const TaggunTranscribeReceiptFileSimpleOutput: z.ZodTypeAny;
6
+ declare const taggunTranscribeReceiptFileSimple: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunTranscribeReceiptFileSimple };
9
+ //# sourceMappingURL=transcribe-receipt-file-simple.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-file-simple.d.cts","names":[],"sources":["../../src/actions/transcribe-receipt-file-simple.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAiB0B;AAAA,cAKpE,uCAAA,EAAyC,CAAA,CAAE,UAaQ;AAAA,cAEnD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/transcribe-receipt-file-simple.d.ts
4
+ declare const TaggunTranscribeReceiptFileSimpleInput: z.ZodTypeAny;
5
+ declare const TaggunTranscribeReceiptFileSimpleOutput: z.ZodTypeAny;
6
+ declare const taggunTranscribeReceiptFileSimple: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunTranscribeReceiptFileSimple };
9
+ //# sourceMappingURL=transcribe-receipt-file-simple.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-file-simple.d.mts","names":[],"sources":["../../src/actions/transcribe-receipt-file-simple.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAiB0B;AAAA,cAKpE,uCAAA,EAAyC,CAAA,CAAE,UAaQ;AAAA,cAEnD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,64 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/transcribe-receipt-file-simple.ts
4
+ const TaggunTranscribeReceiptFileSimpleInput = z.object({
5
+ file: z.object({
6
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ 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."),
8
+ mimetype: z.string().describe("The MIME type of the file")
9
+ }).describe("Receipt or invoice image file to upload (less than 20MB). Supported formats: PDF, JPG, PNG, GIF, HEIC."),
10
+ near: z.string().describe("A geo location to search for merchant. Typically in the format of city, state, country.").optional(),
11
+ userId: z.string().describe("Tag a request with a user ID so that duplicate receipts by the same user can be detected").optional(),
12
+ refresh: z.boolean().default(false).describe("Set true to force re-process image transcription if the receipt is already in storage. Default is false.").optional(),
13
+ language: z.enum([
14
+ "en",
15
+ "es",
16
+ "fr",
17
+ "jp",
18
+ "he",
19
+ "iw",
20
+ "et",
21
+ "lv",
22
+ "lt",
23
+ "fi",
24
+ "el",
25
+ "zh",
26
+ "th",
27
+ "ar"
28
+ ]).describe("Supported languages for receipt OCR processing.").optional(),
29
+ incognito: z.boolean().default(false).describe("Set true to avoid saving the receipt in storage. Default is false.").optional(),
30
+ ipAddress: z.string().describe("IP Address of the end user for fraud detection purposes").optional(),
31
+ containerId: z.string().describe("Tag a request with a container ID for fraud detection purposes").optional(),
32
+ 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(),
33
+ referenceId: z.string().describe("Tag a request with a unique reference ID for feedback/training and receipt similarity check purposes").optional(),
34
+ subAccountId: z.string().describe("Tag a request with sub-account ID for billing purposes").optional(),
35
+ 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()
36
+ }).describe("Request model for transcribing receipt data from an uploaded file.");
37
+ const TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema = z.object({
38
+ data: z.unknown().describe("Extracted data value").nullable().optional(),
39
+ confidenceLevel: z.number().describe("Confidence score for the extracted field (0.0 to 1.0)").nullable().optional()
40
+ }).describe("Confidence data structure for extracted fields.");
41
+ const taggunTranscribeReceiptFileSimple = action("TAGGUN_TRANSCRIBE_RECEIPT_FILE_SIMPLE", {
42
+ slug: "taggun-transcribe-receipt-file-simple",
43
+ name: "Transcribe Receipt File (Simple)",
44
+ description: "Tool to upload a receipt or invoice image file and extract basic data including merchant name, total amount, tax amount, and date. Use when you need to digitize receipt data from a file (PDF, JPG, PNG, GIF, HEIC up to 20MB). The API uses OCR to detect and extract key fields.",
45
+ input: TaggunTranscribeReceiptFileSimpleInput,
46
+ output: z.object({
47
+ date: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
48
+ error: z.string().describe("Error message if processing failed").nullable().optional(),
49
+ taxAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
50
+ totalAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
51
+ merchantCity: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
52
+ merchantName: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
53
+ merchantState: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
54
+ merchantTypes: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
55
+ confidenceLevel: z.number().describe("Overall confidence level for the extraction (0.0 to 1.0)").nullable().optional(),
56
+ merchantAddress: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
57
+ merchantPostalCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),
58
+ merchantCountryCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional()
59
+ }).describe("Response model containing extracted receipt data.")
60
+ });
61
+ //#endregion
62
+ export { taggunTranscribeReceiptFileSimple };
63
+
64
+ //# sourceMappingURL=transcribe-receipt-file-simple.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcribe-receipt-file-simple.mjs","names":[],"sources":["../../src/actions/transcribe-receipt-file-simple.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunTranscribeReceiptFileSimpleInput: 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(\"Receipt or invoice image file to upload (less than 20MB). Supported formats: PDF, JPG, PNG, GIF, HEIC.\"),\n near: z.string().describe(\"A geo location to search for merchant. Typically in the format of city, state, country.\").optional(),\n userId: z.string().describe(\"Tag a request with a user ID so that duplicate receipts by the same user can be detected\").optional(),\n refresh: z.boolean().default(false).describe(\"Set true to force re-process image transcription if the receipt is already in storage. Default is false.\").optional(),\n language: z.enum([\"en\", \"es\", \"fr\", \"jp\", \"he\", \"iw\", \"et\", \"lv\", \"lt\", \"fi\", \"el\", \"zh\", \"th\", \"ar\"]).describe(\"Supported languages for receipt OCR processing.\").optional(),\n incognito: z.boolean().default(false).describe(\"Set true to avoid saving the receipt in storage. 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\").optional(),\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 referenceId: z.string().describe(\"Tag a request with a unique reference ID for feedback/training and receipt similarity check purposes\").optional(),\n subAccountId: z.string().describe(\"Tag a request with sub-account ID for billing purposes\").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 transcribing receipt data from an uploaded file.\");\nconst TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema: z.ZodTypeAny = z.object({\n data: z.unknown().describe(\"Extracted data value\").nullable().optional(),\n confidenceLevel: z.number().describe(\"Confidence score for the extracted field (0.0 to 1.0)\").nullable().optional(),\n}).describe(\"Confidence data structure for extracted fields.\");\nexport const TaggunTranscribeReceiptFileSimpleOutput: z.ZodTypeAny = z.object({\n date: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n error: z.string().describe(\"Error message if processing failed\").nullable().optional(),\n taxAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n totalAmount: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantCity: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantName: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantState: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantTypes: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n confidenceLevel: z.number().describe(\"Overall confidence level for the extraction (0.0 to 1.0)\").nullable().optional(),\n merchantAddress: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantPostalCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n merchantCountryCode: TaggunTranscribeReceiptFileSimple_ConfidenceDataSchema.nullable().optional(),\n}).describe(\"Response model containing extracted receipt data.\");\n\nexport const taggunTranscribeReceiptFileSimple = action(\"TAGGUN_TRANSCRIBE_RECEIPT_FILE_SIMPLE\", {\n slug: \"taggun-transcribe-receipt-file-simple\",\n name: \"Transcribe Receipt File (Simple)\",\n description: \"Tool to upload a receipt or invoice image file and extract basic data including merchant name, total amount, tax amount, and date. Use when you need to digitize receipt data from a file (PDF, JPG, PNG, GIF, HEIC up to 20MB). The API uses OCR to detect and extract key fields.\",\n input: TaggunTranscribeReceiptFileSimpleInput,\n output: TaggunTranscribeReceiptFileSimpleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACjI,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAA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oC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,WAAW,uDAAuD,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,uDAAuD,SAAS,CAAC,CAAC,SAAS;EACxF,cAAc,uDAAuD,SAAS,CAAC,CAAC,SAAS;EACzF,cAAc,uDAAuD,SAAS,CAAC,CAAC,SAAS;EACzF,eAAe,uDAAuD,SAAS,CAAC,CAAC,SAAS;EAC1F,eAAe,uDAAuD,SAAS,CAAC,CAAC,SAAS;EAC1F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,iBAAiB,uDAAuD,SAAS,CAAC,CAAC,SAAS;EAC5F,oBAAoB,uDAAuD,SAAS,CAAC,CAAC,SAAS;EAC/F,qBAAqB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/url-validation.ts
4
+ const TaggunUrlValidationInput = zod.z.object({
5
+ url: zod.z.string().describe("The URL of the receipt image to be validated."),
6
+ filename: zod.z.string().describe("Optional filename to assign to the image.").optional(),
7
+ doNotSave: zod.z.boolean().default(false).describe("If true, the receipt will not be saved in the database.").optional(),
8
+ externalId: zod.z.string().describe("An external ID to link with the validation for tracking purposes.").optional()
9
+ }).describe("Request schema for URL_VALIDATION.");
10
+ const TaggunUrlValidation_FieldDataSchema = zod.z.object({
11
+ data: zod.z.string().describe("Extracted data value.").nullable().optional(),
12
+ confidenceLevel: zod.z.number().describe("Confidence level for this field (0.0 to 1.0).")
13
+ }).describe("Represents an extracted field with confidence level.");
14
+ const TaggunUrlValidationOutput = zod.z.object({
15
+ date: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
16
+ taxAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
17
+ totalAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
18
+ merchantCity: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
19
+ merchantName: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
20
+ merchantState: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
21
+ merchantTypes: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
22
+ confidenceLevel: zod.z.number().describe("Overall confidence level for the receipt extraction (0.0 to 1.0)."),
23
+ merchantAddress: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
24
+ merchantPostalCode: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
25
+ merchantCountryCode: TaggunUrlValidation_FieldDataSchema.nullable().optional()
26
+ }).describe("Response schema for URL_VALIDATION.\nContains extracted receipt data with confidence levels to validate receipt authenticity.");
27
+ const taggunUrlValidation = require_action.action("TAGGUN_URL_VALIDATION", {
28
+ slug: "taggun-url-validation",
29
+ name: "URL Validation",
30
+ description: "Tool to extract and validate receipt data from a URL. Processes a receipt image from a public URL and returns extracted fields with confidence levels to assess receipt authenticity. Use when you have a receipt URL and need to verify it contains valid receipt data.",
31
+ input: TaggunUrlValidationInput,
32
+ output: TaggunUrlValidationOutput
33
+ });
34
+ //#endregion
35
+ exports.taggunUrlValidation = taggunUrlValidation;
36
+
37
+ //# sourceMappingURL=url-validation.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-validation.cjs","names":["z","action"],"sources":["../../src/actions/url-validation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunUrlValidationInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the receipt image to be validated.\"),\n filename: z.string().describe(\"Optional filename to assign to the image.\").optional(),\n doNotSave: z.boolean().default(false).describe(\"If true, the receipt will not be saved in the database.\").optional(),\n externalId: z.string().describe(\"An external ID to link with the validation for tracking purposes.\").optional(),\n}).describe(\"Request schema for URL_VALIDATION.\");\nconst TaggunUrlValidation_FieldDataSchema: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Extracted data value.\").nullable().optional(),\n confidenceLevel: z.number().describe(\"Confidence level for this field (0.0 to 1.0).\"),\n}).describe(\"Represents an extracted field with confidence level.\");\nexport const TaggunUrlValidationOutput: z.ZodTypeAny = z.object({\n date: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n taxAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n totalAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantCity: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantName: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantState: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantTypes: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n confidenceLevel: z.number().describe(\"Overall confidence level for the receipt extraction (0.0 to 1.0).\"),\n merchantAddress: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantPostalCode: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantCountryCode: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n}).describe(\"Response schema for URL_VALIDATION.\\nContains extracted receipt data with confidence levels to validate receipt authenticity.\");\n\nexport const taggunUrlValidation = action(\"TAGGUN_URL_VALIDATION\", {\n slug: \"taggun-url-validation\",\n name: \"URL Validation\",\n description: \"Tool to extract and validate receipt data from a URL. Processes a receipt image from a public URL and returns extracted fields with confidence levels to assess receipt authenticity. Use when you have a receipt URL and need to verify it contains valid receipt data.\",\n input: TaggunUrlValidationInput,\n output: TaggunUrlValidationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAM,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAC9D,WAAW,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACnE,aAAa,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACrE,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACtE,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACtE,eAAe,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACvE,eAAe,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACvE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACxG,iBAAiB,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACzE,oBAAoB,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAC5E,qBAAqB,oCAAoC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,+HAA+H;AAE3I,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,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/url-validation.d.ts
4
+ declare const TaggunUrlValidationInput: z.ZodTypeAny;
5
+ declare const TaggunUrlValidationOutput: z.ZodTypeAny;
6
+ declare const taggunUrlValidation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunUrlValidation };
9
+ //# sourceMappingURL=url-validation.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-validation.d.cts","names":[],"sources":["../../src/actions/url-validation.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKQ;AAAA,cAKpC,yBAAA,EAA2B,CAAA,CAAE,UAYkG;AAAA,cAE/H,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/url-validation.d.ts
4
+ declare const TaggunUrlValidationInput: z.ZodTypeAny;
5
+ declare const TaggunUrlValidationOutput: z.ZodTypeAny;
6
+ declare const taggunUrlValidation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunUrlValidation };
9
+ //# sourceMappingURL=url-validation.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-validation.d.mts","names":[],"sources":["../../src/actions/url-validation.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKQ;AAAA,cAKpC,yBAAA,EAA2B,CAAA,CAAE,UAYkG;AAAA,cAE/H,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/url-validation.ts
4
+ const TaggunUrlValidationInput = z.object({
5
+ url: z.string().describe("The URL of the receipt image to be validated."),
6
+ filename: z.string().describe("Optional filename to assign to the image.").optional(),
7
+ doNotSave: z.boolean().default(false).describe("If true, the receipt will not be saved in the database.").optional(),
8
+ externalId: z.string().describe("An external ID to link with the validation for tracking purposes.").optional()
9
+ }).describe("Request schema for URL_VALIDATION.");
10
+ const TaggunUrlValidation_FieldDataSchema = z.object({
11
+ data: z.string().describe("Extracted data value.").nullable().optional(),
12
+ confidenceLevel: z.number().describe("Confidence level for this field (0.0 to 1.0).")
13
+ }).describe("Represents an extracted field with confidence level.");
14
+ const taggunUrlValidation = action("TAGGUN_URL_VALIDATION", {
15
+ slug: "taggun-url-validation",
16
+ name: "URL Validation",
17
+ description: "Tool to extract and validate receipt data from a URL. Processes a receipt image from a public URL and returns extracted fields with confidence levels to assess receipt authenticity. Use when you have a receipt URL and need to verify it contains valid receipt data.",
18
+ input: TaggunUrlValidationInput,
19
+ output: z.object({
20
+ date: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
21
+ taxAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
22
+ totalAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
23
+ merchantCity: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
24
+ merchantName: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
25
+ merchantState: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
26
+ merchantTypes: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
27
+ confidenceLevel: z.number().describe("Overall confidence level for the receipt extraction (0.0 to 1.0)."),
28
+ merchantAddress: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
29
+ merchantPostalCode: TaggunUrlValidation_FieldDataSchema.nullable().optional(),
30
+ merchantCountryCode: TaggunUrlValidation_FieldDataSchema.nullable().optional()
31
+ }).describe("Response schema for URL_VALIDATION.\nContains extracted receipt data with confidence levels to validate receipt authenticity.")
32
+ });
33
+ //#endregion
34
+ export { taggunUrlValidation };
35
+
36
+ //# sourceMappingURL=url-validation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-validation.mjs","names":[],"sources":["../../src/actions/url-validation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunUrlValidationInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the receipt image to be validated.\"),\n filename: z.string().describe(\"Optional filename to assign to the image.\").optional(),\n doNotSave: z.boolean().default(false).describe(\"If true, the receipt will not be saved in the database.\").optional(),\n externalId: z.string().describe(\"An external ID to link with the validation for tracking purposes.\").optional(),\n}).describe(\"Request schema for URL_VALIDATION.\");\nconst TaggunUrlValidation_FieldDataSchema: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Extracted data value.\").nullable().optional(),\n confidenceLevel: z.number().describe(\"Confidence level for this field (0.0 to 1.0).\"),\n}).describe(\"Represents an extracted field with confidence level.\");\nexport const TaggunUrlValidationOutput: z.ZodTypeAny = z.object({\n date: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n taxAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n totalAmount: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantCity: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantName: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantState: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantTypes: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n confidenceLevel: z.number().describe(\"Overall confidence level for the receipt extraction (0.0 to 1.0).\"),\n merchantAddress: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantPostalCode: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n merchantCountryCode: TaggunUrlValidation_FieldDataSchema.nullable().optional(),\n}).describe(\"Response schema for URL_VALIDATION.\\nContains extracted receipt data with confidence levels to validate receipt authenticity.\");\n\nexport const taggunUrlValidation = action(\"TAGGUN_URL_VALIDATION\", {\n slug: \"taggun-url-validation\",\n name: \"URL Validation\",\n description: \"Tool to extract and validate receipt data from a URL. Processes a receipt image from a public URL and returns extracted fields with confidence levels to assess receipt authenticity. Use when you have a receipt URL and need to verify it contains valid receipt data.\",\n input: TaggunUrlValidationInput,\n output: TaggunUrlValidationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,sCAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAelE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnBqD,EAAE,OAAO;EAC9D,MAAM,oCAAoC,SAAS,CAAC,CAAC,SAAS;EAC9D,WAAW,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACnE,aAAa,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACrE,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACtE,cAAc,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACtE,eAAe,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACvE,eAAe,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACvE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACxG,iBAAiB,oCAAoC,SAAS,CAAC,CAAC,SAAS;EACzE,oBAAoB,oCAAoC,SAAS,CAAC,CAAC,SAAS;EAC5E,qBAAqB,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,+HAOF;AACV,CAAC"}
@@ -0,0 +1,44 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/url-verbose.ts
4
+ const TaggunUrlVerboseInput = zod.z.object({
5
+ url: zod.z.string().describe("Publicly accessible URL of the receipt or invoice image."),
6
+ near: zod.z.string().describe("Location hint (city, state, country) for merchant search.").optional(),
7
+ refresh: zod.z.boolean().default(false).describe("If true, forces reprocessing even if cached results exist.").optional(),
8
+ language: zod.z.string().describe("Language hint for OCR (supports: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th).").optional(),
9
+ incognito: zod.z.boolean().default(false).describe("If true, excludes this document from Taggun's learning dataset.").optional(),
10
+ ipAddress: zod.z.string().describe("End-user IP address for fraud assessment.").optional(),
11
+ extractTime: zod.z.boolean().default(false).describe("Return extracted time; defaults to 12:00:00.000 if not found.").optional(),
12
+ referenceId: zod.z.string().describe("Unique reference ID for feedback tracking.").optional(),
13
+ subAccountId: zod.z.string().describe("Tag request for billing purposes.").optional(),
14
+ extractLineItems: zod.z.boolean().default(true).describe("Set true to return product line items in an array if found.").optional(),
15
+ ignoreMerchantName: zod.z.string().describe("Merchant name to exclude from detection.").optional()
16
+ }).describe("Request model for verbose extraction from a receipt/invoice URL.");
17
+ const TaggunUrlVerboseOutput = zod.z.object({
18
+ date: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Date information with confidence, text, and regions.").nullable().optional(),
19
+ 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(),
20
+ amounts: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of all detected amounts with details, text, currency, and regions.").nullable().optional(),
21
+ dueDate: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Due date information with confidence.").nullable().optional(),
22
+ elapsed: zod.z.number().describe("Processing time in milliseconds.").nullable().optional(),
23
+ numbers: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of all detected numbers on the receipt.").nullable().optional(),
24
+ entities: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structured entities including merchant info and line items.").nullable().optional(),
25
+ location: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Geolocation data including city, country, coordinates, and timezone.").nullable().optional(),
26
+ taxAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tax amount with confidence, text, and regions.").nullable().optional(),
27
+ paidAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Paid amount with confidence, text, and regions.").nullable().optional(),
28
+ totalAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Total amount with confidence, text, and regions.").nullable().optional(),
29
+ merchantName: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant name with confidence.").nullable().optional(),
30
+ discountAmount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Discount amount with confidence.").nullable().optional(),
31
+ confidenceLevel: zod.z.number().describe("Overall confidence level (0.0 to 1.0).").nullable().optional(),
32
+ merchantAddress: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Merchant address with confidence.").nullable().optional()
33
+ }).describe("Response model for verbose receipt/invoice extraction from URL.\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and geolocation.");
34
+ const taggunUrlVerbose = require_action.action("TAGGUN_URL_VERBOSE", {
35
+ slug: "taggun-url-verbose",
36
+ name: "URL Verbose",
37
+ description: "Tool to process a receipt or invoice from a URL for detailed data extraction. Use when you have a publicly accessible receipt or invoice URL and require comprehensive output including line items, merchant details, and confidence metrics. Call after verifying the URL is reachable.",
38
+ input: TaggunUrlVerboseInput,
39
+ output: TaggunUrlVerboseOutput
40
+ });
41
+ //#endregion
42
+ exports.taggunUrlVerbose = taggunUrlVerbose;
43
+
44
+ //# sourceMappingURL=url-verbose.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-verbose.cjs","names":["z","action"],"sources":["../../src/actions/url-verbose.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunUrlVerboseInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible URL of the receipt or invoice image.\"),\n near: z.string().describe(\"Location hint (city, state, country) for merchant search.\").optional(),\n refresh: z.boolean().default(false).describe(\"If true, forces reprocessing even if cached results exist.\").optional(),\n language: z.string().describe(\"Language hint for OCR (supports: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th).\").optional(),\n incognito: z.boolean().default(false).describe(\"If true, excludes this document from Taggun's learning dataset.\").optional(),\n ipAddress: z.string().describe(\"End-user IP address for fraud assessment.\").optional(),\n extractTime: z.boolean().default(false).describe(\"Return extracted time; defaults to 12:00:00.000 if not found.\").optional(),\n referenceId: z.string().describe(\"Unique reference ID for feedback tracking.\").optional(),\n subAccountId: z.string().describe(\"Tag request for billing purposes.\").optional(),\n extractLineItems: z.boolean().default(true).describe(\"Set true to return product line items in an array if found.\").optional(),\n ignoreMerchantName: z.string().describe(\"Merchant name to exclude from detection.\").optional(),\n}).describe(\"Request model for verbose extraction from a receipt/invoice URL.\");\nexport const TaggunUrlVerboseOutput: 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.record(z.string(), 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.\").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, and regions.\").nullable().optional(),\n paidAmount: z.record(z.string(), z.unknown()).describe(\"Paid amount with confidence, text, and regions.\").nullable().optional(),\n totalAmount: z.record(z.string(), z.unknown()).describe(\"Total amount with confidence, text, and regions.\").nullable().optional(),\n merchantName: z.record(z.string(), z.unknown()).describe(\"Merchant name with confidence.\").nullable().optional(),\n discountAmount: z.record(z.string(), z.unknown()).describe(\"Discount amount with confidence.\").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.\").nullable().optional(),\n}).describe(\"Response model for verbose receipt/invoice extraction from URL.\\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and geolocation.\");\n\nexport const taggunUrlVerbose = action(\"TAGGUN_URL_VERBOSE\", {\n slug: \"taggun-url-verbose\",\n name: \"URL Verbose\",\n description: \"Tool to process a receipt or invoice from a URL for detailed data extraction. Use when you have a publicly accessible receipt or invoice URL and require comprehensive output including line items, merchant details, and confidence metrics. Call after verifying the URL is reachable.\",\n input: TaggunUrlVerboseInput,\n output: TaggunUrlVerboseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ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A,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,uKAAuK;AAEnL,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,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/url-verbose.d.ts
4
+ declare const TaggunUrlVerboseInput: z.ZodTypeAny;
5
+ declare const TaggunUrlVerboseOutput: z.ZodTypeAny;
6
+ declare const taggunUrlVerbose: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunUrlVerbose };
9
+ //# sourceMappingURL=url-verbose.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-verbose.d.cts","names":[],"sources":["../../src/actions/url-verbose.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAYyC;AAAA,cAClE,sBAAA,EAAwB,CAAA,CAAE,UAgB6I;AAAA,cAEvK,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/url-verbose.d.ts
4
+ declare const TaggunUrlVerboseInput: z.ZodTypeAny;
5
+ declare const TaggunUrlVerboseOutput: z.ZodTypeAny;
6
+ declare const taggunUrlVerbose: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunUrlVerbose };
9
+ //# sourceMappingURL=url-verbose.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-verbose.d.mts","names":[],"sources":["../../src/actions/url-verbose.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAYyC;AAAA,cAClE,sBAAA,EAAwB,CAAA,CAAE,UAgB6I;AAAA,cAEvK,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,41 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const taggunUrlVerbose = action("TAGGUN_URL_VERBOSE", {
4
+ slug: "taggun-url-verbose",
5
+ name: "URL Verbose",
6
+ description: "Tool to process a receipt or invoice from a URL for detailed data extraction. Use when you have a publicly accessible receipt or invoice URL and require comprehensive output including line items, merchant details, and confidence metrics. Call after verifying the URL is reachable.",
7
+ input: z.object({
8
+ url: z.string().describe("Publicly accessible URL of the receipt or invoice image."),
9
+ near: z.string().describe("Location hint (city, state, country) for merchant search.").optional(),
10
+ refresh: z.boolean().default(false).describe("If true, forces reprocessing even if cached results exist.").optional(),
11
+ language: z.string().describe("Language hint for OCR (supports: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th).").optional(),
12
+ incognito: z.boolean().default(false).describe("If true, excludes this document from Taggun's learning dataset.").optional(),
13
+ ipAddress: z.string().describe("End-user IP address for fraud assessment.").optional(),
14
+ extractTime: z.boolean().default(false).describe("Return extracted time; defaults to 12:00:00.000 if not found.").optional(),
15
+ referenceId: z.string().describe("Unique reference ID for feedback tracking.").optional(),
16
+ subAccountId: z.string().describe("Tag request for billing purposes.").optional(),
17
+ extractLineItems: z.boolean().default(true).describe("Set true to return product line items in an array if found.").optional(),
18
+ ignoreMerchantName: z.string().describe("Merchant name to exclude from detection.").optional()
19
+ }).describe("Request model for verbose extraction from a receipt/invoice URL."),
20
+ output: z.object({
21
+ date: z.record(z.string(), z.unknown()).describe("Date information with confidence, text, and regions.").nullable().optional(),
22
+ text: z.record(z.string(), z.unknown()).describe("Full OCR text with regions (contains 'text' field with string and 'regions' array).").nullable().optional(),
23
+ amounts: z.array(z.record(z.string(), z.unknown())).describe("List of all detected amounts with details, text, currency, and regions.").nullable().optional(),
24
+ dueDate: z.record(z.string(), z.unknown()).describe("Due date information with confidence.").nullable().optional(),
25
+ elapsed: z.number().describe("Processing time in milliseconds.").nullable().optional(),
26
+ numbers: z.array(z.record(z.string(), z.unknown())).describe("List of all detected numbers on the receipt.").nullable().optional(),
27
+ entities: z.record(z.string(), z.unknown()).describe("Structured entities including merchant info and line items.").nullable().optional(),
28
+ location: z.record(z.string(), z.unknown()).describe("Geolocation data including city, country, coordinates, and timezone.").nullable().optional(),
29
+ taxAmount: z.record(z.string(), z.unknown()).describe("Tax amount with confidence, text, and regions.").nullable().optional(),
30
+ paidAmount: z.record(z.string(), z.unknown()).describe("Paid amount with confidence, text, and regions.").nullable().optional(),
31
+ totalAmount: z.record(z.string(), z.unknown()).describe("Total amount with confidence, text, and regions.").nullable().optional(),
32
+ merchantName: z.record(z.string(), z.unknown()).describe("Merchant name with confidence.").nullable().optional(),
33
+ discountAmount: z.record(z.string(), z.unknown()).describe("Discount amount with confidence.").nullable().optional(),
34
+ confidenceLevel: z.number().describe("Overall confidence level (0.0 to 1.0).").nullable().optional(),
35
+ merchantAddress: z.record(z.string(), z.unknown()).describe("Merchant address with confidence.").nullable().optional()
36
+ }).describe("Response model for verbose receipt/invoice extraction from URL.\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and geolocation.")
37
+ });
38
+ //#endregion
39
+ export { taggunUrlVerbose };
40
+
41
+ //# sourceMappingURL=url-verbose.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-verbose.mjs","names":[],"sources":["../../src/actions/url-verbose.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunUrlVerboseInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Publicly accessible URL of the receipt or invoice image.\"),\n near: z.string().describe(\"Location hint (city, state, country) for merchant search.\").optional(),\n refresh: z.boolean().default(false).describe(\"If true, forces reprocessing even if cached results exist.\").optional(),\n language: z.string().describe(\"Language hint for OCR (supports: en, es, fr, jp, he, iw, et, lv, lt, fi, el, zh, th).\").optional(),\n incognito: z.boolean().default(false).describe(\"If true, excludes this document from Taggun's learning dataset.\").optional(),\n ipAddress: z.string().describe(\"End-user IP address for fraud assessment.\").optional(),\n extractTime: z.boolean().default(false).describe(\"Return extracted time; defaults to 12:00:00.000 if not found.\").optional(),\n referenceId: z.string().describe(\"Unique reference ID for feedback tracking.\").optional(),\n subAccountId: z.string().describe(\"Tag request for billing purposes.\").optional(),\n extractLineItems: z.boolean().default(true).describe(\"Set true to return product line items in an array if found.\").optional(),\n ignoreMerchantName: z.string().describe(\"Merchant name to exclude from detection.\").optional(),\n}).describe(\"Request model for verbose extraction from a receipt/invoice URL.\");\nexport const TaggunUrlVerboseOutput: 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.record(z.string(), 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.\").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, and regions.\").nullable().optional(),\n paidAmount: z.record(z.string(), z.unknown()).describe(\"Paid amount with confidence, text, and regions.\").nullable().optional(),\n totalAmount: z.record(z.string(), z.unknown()).describe(\"Total amount with confidence, text, and regions.\").nullable().optional(),\n merchantName: z.record(z.string(), z.unknown()).describe(\"Merchant name with confidence.\").nullable().optional(),\n discountAmount: z.record(z.string(), z.unknown()).describe(\"Discount amount with confidence.\").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.\").nullable().optional(),\n}).describe(\"Response model for verbose receipt/invoice extraction from URL.\\nReturns comprehensive OCR data including amounts, merchant info, dates, line items, and geolocation.\");\n\nexport const taggunUrlVerbose = action(\"TAGGUN_URL_VERBOSE\", {\n slug: \"taggun-url-verbose\",\n name: \"URL Verbose\",\n description: \"Tool to process a receipt or invoice from a URL for detailed data extraction. Use when you have a publicly accessible receipt or invoice URL and require comprehensive output including line items, merchant details, and confidence metrics. Call after verifying the URL is reachable.\",\n input: TaggunUrlVerboseInput,\n output: TaggunUrlVerboseOutput,\n});\n"],"mappings":";;AAmCA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnCiD,EAAE,OAAO;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACpH,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CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,uKAOF;AACV,CAAC"}
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/url.ts
4
+ const TaggunUrlInput = zod.z.object({
5
+ url: zod.z.string().describe("Public HTTPS URL of the receipt/invoice image. Supported formats: JPEG, PNG, PDF, GIF. URL must be publicly accessible and point directly to the image file."),
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("Optional filename for reference purposes (e.g., 'receipt.jpg'). Does not affect processing.").optional(),
8
+ contentType: zod.z.string().describe("Optional MIME type of the image file (e.g., 'image/jpeg', 'image/png', 'application/pdf'). Auto-detected if not provided.").optional()
9
+ }).describe("Request model for processing a receipt or invoice image from a public URL.");
10
+ const TaggunUrl_LineItemSchema = zod.z.object({
11
+ name: zod.z.string().describe("Item description or name, as detected by OCR").nullable().optional(),
12
+ price: zod.z.number().describe("Unit price of the item, if available").nullable().optional(),
13
+ quantity: zod.z.number().describe("Quantity purchased, if available").nullable().optional(),
14
+ totalAmount: zod.z.number().describe("Total amount for this line item").nullable().optional()
15
+ }).describe("A single line item from the receipt or invoice.");
16
+ const TaggunUrl_ConfidenceSchema = zod.z.object({
17
+ date: zod.z.number().describe("Confidence score for date").nullable().optional(),
18
+ total: zod.z.number().describe("Confidence score for total amount").nullable().optional(),
19
+ merchant_name: zod.z.number().describe("Confidence score for merchant name").nullable().optional(),
20
+ invoice_number: zod.z.number().describe("Confidence score for invoice number").nullable().optional()
21
+ }).describe("Confidence scores for various extracted fields.");
22
+ const TaggunUrlOutput = zod.z.object({
23
+ date: zod.z.string().describe("Detected purchase date in ISO 8601 format").nullable().optional(),
24
+ rawText: zod.z.string().describe("Raw OCR text extracted from the document").nullable().optional(),
25
+ currency: zod.z.string().describe("Detected currency code (ISO 4217)").nullable().optional(),
26
+ lineItems: zod.z.array(TaggunUrl_LineItemSchema).describe("List of detected line items").nullable().optional(),
27
+ taxAmount: zod.z.number().describe("Detected total tax amount").nullable().optional(),
28
+ tipAmount: zod.z.number().describe("Detected tip amount, if any").nullable().optional(),
29
+ confidence: TaggunUrl_ConfidenceSchema.nullable().optional(),
30
+ totalAmount: zod.z.number().describe("Detected total amount").nullable().optional(),
31
+ merchantName: zod.z.string().describe("Detected merchant or store name").nullable().optional(),
32
+ invoiceNumber: zod.z.string().describe("Detected invoice or receipt number").nullable().optional(),
33
+ subTotalAmount: zod.z.number().describe("Detected subtotal amount before tax").nullable().optional()
34
+ }).describe("Response model for basic data extracted from a receipt or invoice via URL.");
35
+ const taggunUrl = require_action.action("TAGGUN_URL", {
36
+ slug: "taggun-url",
37
+ name: "Process Receipt via URL",
38
+ description: "Extract structured data from a receipt or invoice image using OCR. Provide a public URL to a receipt/invoice image (JPEG, PNG, PDF, GIF) and get back extracted fields like total amount, date, merchant name, tax, line items, and confidence scores. Use this when you need to digitize receipt/invoice data from a publicly accessible image URL. The API uses machine learning OCR to detect and extract key fields automatically.",
39
+ input: TaggunUrlInput,
40
+ output: TaggunUrlOutput
41
+ });
42
+ //#endregion
43
+ exports.taggunUrl = taggunUrl;
44
+
45
+ //# sourceMappingURL=url.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.cjs","names":["z","action"],"sources":["../../src/actions/url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaggunUrlInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Public HTTPS URL of the receipt/invoice image. Supported formats: JPEG, PNG, PDF, GIF. URL must be publicly accessible and point directly to the image file.\"),\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(\"Optional filename for reference purposes (e.g., 'receipt.jpg'). Does not affect processing.\").optional(),\n contentType: z.string().describe(\"Optional MIME type of the image file (e.g., 'image/jpeg', 'image/png', 'application/pdf'). Auto-detected if not provided.\").optional(),\n}).describe(\"Request model for processing a receipt or invoice image from a public URL.\");\nconst TaggunUrl_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 TaggunUrl_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 TaggunUrlOutput: 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(TaggunUrl_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: TaggunUrl_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 URL.\");\n\nexport const taggunUrl = action(\"TAGGUN_URL\", {\n slug: \"taggun-url\",\n name: \"Process Receipt via URL\",\n description: \"Extract structured data from a receipt or invoice image using OCR. Provide a public URL to a receipt/invoice image (JPEG, PNG, PDF, GIF) and get back extracted fields like total amount, date, merchant name, tax, line items, and confidence scores. Use this when you need to digitize receipt/invoice data from a publicly accessible image URL. The API uses machine learning OCR to detect and extract key fields automatically.\",\n input: TaggunUrlInput,\n output: TaggunUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iBAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;CACvL,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAChM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,2BAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,6BAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,C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eA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,4EAA4E;AAExF,MAAa,YAAYC,eAAAA,OAAO,cAAc;CAC5C,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/url.d.ts
4
+ declare const TaggunUrlInput: z.ZodTypeAny;
5
+ declare const TaggunUrlOutput: z.ZodTypeAny;
6
+ declare const taggunUrl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunUrl };
9
+ //# sourceMappingURL=url.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.d.cts","names":[],"sources":["../../src/actions/url.ts"],"mappings":";;;cAIa,cAAA,EAAgB,CAAA,CAAE,UAK0D;AAAA,cAa5E,eAAA,EAAiB,CAAA,CAAE,UAYyD;AAAA,cAE5E,SAAA,gCAAS,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/url.d.ts
4
+ declare const TaggunUrlInput: z.ZodTypeAny;
5
+ declare const TaggunUrlOutput: z.ZodTypeAny;
6
+ declare const taggunUrl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { taggunUrl };
9
+ //# sourceMappingURL=url.d.mts.map