@veryfi/veryfi-sdk 1.4.8 → 1.5.1

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 (176) hide show
  1. package/README.md +19 -2
  2. package/lib/anydocs/deleteAnyDocumentTag.js +14 -0
  3. package/lib/anydocs/getAnyDocument.js +3 -3
  4. package/lib/anydocs/getAnyDocumentTags.js +15 -0
  5. package/lib/anydocs/getAnyDocuments.js +3 -3
  6. package/lib/anydocs/getBlueprints.js +17 -0
  7. package/lib/anydocs/processAnyDocumentAsync.js +31 -0
  8. package/lib/anydocs/processAnyDocumentAsyncBase64.js +30 -0
  9. package/lib/anydocs/processAnyDocumentAsyncStream.js +30 -0
  10. package/lib/anydocs/processAnyDocumentAsyncUrl.js +30 -0
  11. package/lib/anydocs/tags/addAnyDocumentTag.js +15 -0
  12. package/lib/anydocs/tags/addAnyDocumentTags.js +15 -0
  13. package/lib/anydocs/tags/deleteAnyDocumentTags.js +12 -0
  14. package/lib/anydocs/updateAnyDocument.js +14 -0
  15. package/lib/bankstatements/getBankStatement.js +3 -3
  16. package/lib/bankstatements/getBankStatementSet.js +14 -0
  17. package/lib/bankstatements/getBankStatementSets.js +23 -0
  18. package/lib/bankstatements/getBankStatements.js +3 -3
  19. package/lib/bankstatements/processBankStatementAsync.js +31 -0
  20. package/lib/bankstatements/processBankStatementAsyncBase64.js +30 -0
  21. package/lib/bankstatements/processBankStatementAsyncStream.js +30 -0
  22. package/lib/bankstatements/processBankStatementAsyncUrl.js +30 -0
  23. package/lib/bankstatements/splitBankStatements.js +25 -0
  24. package/lib/bankstatements/splitBankStatementsBase64.js +24 -0
  25. package/lib/bankstatements/splitBankStatementsStream.js +24 -0
  26. package/lib/bankstatements/splitBankStatementsUrl.js +24 -0
  27. package/lib/bankstatements/tags/addBankStatementTag.js +15 -0
  28. package/lib/bankstatements/tags/addBankStatementTags.js +15 -0
  29. package/lib/bankstatements/tags/deleteBankStatementTag.js +13 -0
  30. package/lib/bankstatements/tags/deleteBankStatementTags.js +12 -0
  31. package/lib/bankstatements/tags/getBankStatementTags.js +14 -0
  32. package/lib/bankstatements/updateBankStatement.js +14 -0
  33. package/lib/businesscards/getBusinessCard.js +3 -3
  34. package/lib/businesscards/getBusinessCards.js +3 -3
  35. package/lib/businesscards/tags/addBusinessCardTag.js +15 -0
  36. package/lib/businesscards/tags/addBusinessCardTags.js +15 -0
  37. package/lib/businesscards/tags/deleteBusinessCardTag.js +13 -0
  38. package/lib/businesscards/tags/deleteBusinessCardTags.js +12 -0
  39. package/lib/businesscards/tags/getBusinessCardTags.js +14 -0
  40. package/lib/businesscards/updateBusinessCard.js +14 -0
  41. package/lib/checks/getCheck.js +3 -3
  42. package/lib/checks/getChecks.js +3 -3
  43. package/lib/checks/processCheckAsync.js +31 -0
  44. package/lib/checks/processCheckAsyncBase64.js +30 -0
  45. package/lib/checks/processCheckAsyncStream.js +30 -0
  46. package/lib/checks/processCheckAsyncUrl.js +30 -0
  47. package/lib/checks/processCheckWithRemittance.js +31 -0
  48. package/lib/checks/processCheckWithRemittanceBase64.js +30 -0
  49. package/lib/checks/processCheckWithRemittanceStream.js +30 -0
  50. package/lib/checks/processCheckWithRemittanceUrl.js +30 -0
  51. package/lib/checks/tags/addCheckTag.js +15 -0
  52. package/lib/checks/tags/addCheckTags.js +15 -0
  53. package/lib/checks/tags/deleteCheckTag.js +13 -0
  54. package/lib/checks/tags/deleteCheckTags.js +12 -0
  55. package/lib/checks/tags/getCheckTags.js +14 -0
  56. package/lib/checks/updateCheck.js +14 -0
  57. package/lib/classify/classifyDocument.js +25 -0
  58. package/lib/classify/classifyDocumentBase64.js +3 -3
  59. package/lib/classify/classifyDocumentStream.js +24 -0
  60. package/lib/classify/classifyDocumentUrl.js +4 -4
  61. package/lib/classify/extractDocument.js +28 -0
  62. package/lib/classify/extractDocumentBase64.js +27 -0
  63. package/lib/classify/extractDocumentStream.js +27 -0
  64. package/lib/classify/extractDocumentUrl.js +27 -0
  65. package/lib/client/client.js +151 -4
  66. package/lib/client/request.js +7 -2
  67. package/lib/contracts/deleteContract.js +12 -0
  68. package/lib/contracts/getContract.js +18 -0
  69. package/lib/contracts/getContracts.js +23 -0
  70. package/lib/contracts/processContract.js +25 -0
  71. package/lib/contracts/processContractBase64.js +24 -0
  72. package/lib/contracts/processContractStream.js +24 -0
  73. package/lib/contracts/processContractUrl.js +24 -0
  74. package/lib/contracts/tags/addContractTag.js +15 -0
  75. package/lib/contracts/tags/addContractTags.js +15 -0
  76. package/lib/contracts/tags/deleteContractTag.js +13 -0
  77. package/lib/contracts/tags/deleteContractTags.js +12 -0
  78. package/lib/contracts/tags/getContractTags.js +14 -0
  79. package/lib/contracts/updateContract.js +14 -0
  80. package/lib/documents/getDocument.js +1 -2
  81. package/lib/documents/getDocuments.js +5 -5
  82. package/lib/documents/lineitems/createLineItem.js +14 -0
  83. package/lib/documents/lineitems/deleteDocumentLineItems.js +12 -0
  84. package/lib/documents/lineitems/deleteLineItem.js +13 -0
  85. package/lib/documents/lineitems/getDocumentLineItems.js +14 -0
  86. package/lib/documents/lineitems/getLineItem.js +15 -0
  87. package/lib/documents/lineitems/updateLineItem.js +15 -0
  88. package/lib/documents/processDocument.js +3 -0
  89. package/lib/documents/processDocumentStream.js +1 -1
  90. package/lib/documents/processDocumentUrl.js +1 -1
  91. package/lib/documents/processDocumentsBulk.js +15 -0
  92. package/lib/documents/tags/getDocumentTags.js +14 -0
  93. package/lib/documents/taxlines/createTaxLine.js +14 -0
  94. package/lib/documents/taxlines/deleteTaxLine.js +13 -0
  95. package/lib/documents/taxlines/getTaxLine.js +15 -0
  96. package/lib/documents/taxlines/getTaxLines.js +14 -0
  97. package/lib/documents/taxlines/updateTaxLine.js +15 -0
  98. package/lib/fraud/addDevicesToBlocklist.js +20 -0
  99. package/lib/fraud/getFraudBlocklist.js +17 -0
  100. package/lib/fraud/removeDeviceFromBlocklist.js +12 -0
  101. package/lib/parse/deleteMarkdownDocument.js +12 -0
  102. package/lib/parse/getMarkdownDocument.js +14 -0
  103. package/lib/parse/getMarkdownDocumentSet.js +14 -0
  104. package/lib/parse/getMarkdownDocumentSets.js +23 -0
  105. package/lib/parse/getMarkdownDocuments.js +23 -0
  106. package/lib/parse/processMarkdownDocument.js +25 -0
  107. package/lib/parse/processMarkdownDocumentAsync.js +25 -0
  108. package/lib/parse/processMarkdownDocumentAsyncBase64.js +24 -0
  109. package/lib/parse/processMarkdownDocumentAsyncStream.js +24 -0
  110. package/lib/parse/processMarkdownDocumentAsyncUrl.js +24 -0
  111. package/lib/parse/processMarkdownDocumentBase64.js +24 -0
  112. package/lib/parse/processMarkdownDocumentSet.js +25 -0
  113. package/lib/parse/processMarkdownDocumentSetBase64.js +24 -0
  114. package/lib/parse/processMarkdownDocumentSetStream.js +24 -0
  115. package/lib/parse/processMarkdownDocumentSetUrl.js +24 -0
  116. package/lib/parse/processMarkdownDocumentStream.js +24 -0
  117. package/lib/parse/processMarkdownDocumentUrl.js +24 -0
  118. package/lib/parse/updateMarkdownDocument.js +14 -0
  119. package/lib/platform/getOcrCounts.js +20 -0
  120. package/lib/platform/getOpenApiSchema.js +17 -0
  121. package/lib/platform/getReleaseNotifications.js +13 -0
  122. package/lib/settings/addWebhook.js +20 -0
  123. package/lib/settings/confirmWebhook.js +23 -0
  124. package/lib/settings/createApiKey.js +20 -0
  125. package/lib/settings/createClientKeys.js +17 -0
  126. package/lib/settings/deleteClientKey.js +12 -0
  127. package/lib/settings/deleteTlsCertificate.js +12 -0
  128. package/lib/settings/getApiKey.js +17 -0
  129. package/lib/settings/getApiKeyPermissions.js +15 -0
  130. package/lib/settings/getApiKeys.js +15 -0
  131. package/lib/settings/getClientKeys.js +15 -0
  132. package/lib/settings/getTlsCertificates.js +15 -0
  133. package/lib/settings/getWebhooks.js +15 -0
  134. package/lib/settings/processTlsCertificate.js +17 -0
  135. package/lib/settings/resetClientKeys.js +17 -0
  136. package/lib/settings/revokeApiKey.js +12 -0
  137. package/lib/settings/rotateApiKey.js +14 -0
  138. package/lib/settings/updateApiKey.js +19 -0
  139. package/lib/settings/verifyApiKey.js +15 -0
  140. package/lib/split/getSplitDocument.js +2 -3
  141. package/lib/split/getSplitDocuments.js +3 -3
  142. package/lib/split/splitDocument.js +16 -0
  143. package/lib/split/splitDocumentStream.js +19 -0
  144. package/lib/split/splitDocumentUrl.js +1 -1
  145. package/lib/types/Client.ts +537 -1
  146. package/lib/types/VeryfiExtraArgs.ts +4 -5
  147. package/lib/w2s/getW2.js +1 -2
  148. package/lib/w2s/getW2Set.js +14 -0
  149. package/lib/w2s/getW2Sets.js +23 -0
  150. package/lib/w2s/splitW2s.js +25 -0
  151. package/lib/w2s/splitW2sBase64.js +24 -0
  152. package/lib/w2s/splitW2sStream.js +24 -0
  153. package/lib/w2s/splitW2sUrl.js +24 -0
  154. package/lib/w2s/tags/addW2Tag.js +15 -0
  155. package/lib/w2s/tags/addW2Tags.js +15 -0
  156. package/lib/w2s/tags/deleteW2Tag.js +13 -0
  157. package/lib/w2s/tags/deleteW2Tags.js +12 -0
  158. package/lib/w2s/tags/getW2Tags.js +14 -0
  159. package/lib/w2s/updateW2.js +14 -0
  160. package/lib/w8bene/getW8BENE.js +3 -3
  161. package/lib/w8bene/getW8BENEs.js +3 -3
  162. package/lib/w8bene/tags/addW8beneTag.js +15 -0
  163. package/lib/w8bene/tags/addW8beneTags.js +15 -0
  164. package/lib/w8bene/tags/deleteW8beneTag.js +13 -0
  165. package/lib/w8bene/tags/deleteW8beneTags.js +12 -0
  166. package/lib/w8bene/tags/getW8beneTags.js +14 -0
  167. package/lib/w8bene/updateW8BENE.js +14 -0
  168. package/lib/w9s/getW9.js +3 -3
  169. package/lib/w9s/getW9s.js +3 -3
  170. package/lib/w9s/tags/addW9Tag.js +15 -0
  171. package/lib/w9s/tags/addW9Tags.js +15 -0
  172. package/lib/w9s/tags/deleteW9Tag.js +13 -0
  173. package/lib/w9s/tags/deleteW9Tags.js +12 -0
  174. package/lib/w9s/tags/getW9Tags.js +14 -0
  175. package/lib/w9s/updateW9.js +14 -0
  176. package/package.json +5 -5
@@ -41,9 +41,12 @@ export declare class Client {
41
41
  * @param {{}} request_arguments JSON payload to send to Veryfi
42
42
  * @param params {{}} query params.
43
43
  * @param {Boolean} has_files Are there any files to be submitted as binary
44
+ * @param {Object} [options] Optional request options
45
+ * @param {string} [options.api_version] Override the default API version (v8)
46
+ * @param {boolean} [options.skip_partner] Skip the /partner path segment (used by some v1 routes)
44
47
  * @returns {JSON} A JSON of the response data.
45
48
  */
46
- public _request(http_verb: String, endpoint_name: String, request_arguments: Object, params: Object, has_files: boolean): Promise<any>;
49
+ public _request(http_verb: String, endpoint_name: String, request_arguments: Object, params?: Object, has_files?: boolean, options?: { api_version?: string; skip_partner?: boolean }): Promise<any>;
47
50
 
48
51
  /**
49
52
  * Classify a document. https://docs.veryfi.com/api/classify/classify-a-document/
@@ -317,6 +320,26 @@ export declare class Client {
317
320
  confidence_details?: boolean,
318
321
  {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
319
322
 
323
+ /**
324
+ * Return all tags assigned to a specific any document. https://docs.veryfi.com/api/anydocs/get-A-doc-tags/
325
+ * @memberof Client
326
+ * @param {number} document_id The unique identifier of the document.
327
+ * @param {Object} kwargs Additional request parameters
328
+ * @returns {Promise<{tags: Tag[]}>} List of tags assigned to a specific any document.
329
+ */
330
+ public get_any_document_tags(document_id: number,
331
+ {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
332
+
333
+ /**
334
+ * Unlink a tag from a specific any document. https://docs.veryfi.com/api/anydocs/unlink-a-tag-from-a-A-doc/
335
+ *
336
+ * @memberof Client
337
+ * @param {string} document_id ID of the document you'd like to unlink the tag from
338
+ * @param {string} tag_id ID of the tag you'd like to unlink
339
+ * @return {Promise<any>} response about the unlinked tag.
340
+ */
341
+ public delete_any_document_tag(document_id: string, tag_id: string): Promise<any>;
342
+
320
343
  /**
321
344
  * Process any document and extract all the fields from it. https://docs.veryfi.com/api/anydocs/process-%E2%88%80-doc/
322
345
  * @example
@@ -1132,6 +1155,519 @@ export declare class Client {
1132
1155
  */
1133
1156
  public replace_tags(document_id: string, tags: string[]): Promise<Tag>;
1134
1157
 
1158
+ /**
1159
+ * Classify a document. https://docs.veryfi.com/api/classify/classify-a-document/
1160
+ */
1161
+ public classify_document(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1162
+ /**
1163
+ * Classify a document from a file stream. https://docs.veryfi.com/api/classify/classify-a-document/
1164
+ */
1165
+ public classify_document_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1166
+ /** Get document line items. https://docs.veryfi.com/api/receipts-invoices/get-document-line-items/ */
1167
+ public get_document_line_items(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1168
+ /** Create a line item. https://docs.veryfi.com/api/receipts-invoices/create-a-line-item/ */
1169
+ public create_line_item(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1170
+ /** Delete all document line items. https://docs.veryfi.com/api/receipts-invoices/delete-all-document-line-items/ */
1171
+ public delete_document_line_items(document_id: string): Promise<any>;
1172
+ /** Get a line item. https://docs.veryfi.com/api/receipts-invoices/get-a-line-item/ */
1173
+ public get_line_item(document_id: string, line_item_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1174
+ /** Update a line item. https://docs.veryfi.com/api/receipts-invoices/update-a-line-item/ */
1175
+ public update_line_item(document_id: string, line_item_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1176
+ /** Delete a line item. https://docs.veryfi.com/api/receipts-invoices/delete-a-line-item/ */
1177
+ public delete_line_item(document_id: string, line_item_id: string): Promise<any>;
1178
+ /** Get document tags. https://docs.veryfi.com/api/receipts-invoices/get-document-tags/ */
1179
+ public get_document_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1180
+ /** Get document tax lines. https://docs.veryfi.com/api/returns-a-list-of-document-tax-lines/ */
1181
+ public get_tax_lines(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1182
+ /** Create a tax line. https://docs.veryfi.com/api/create-a-tax-line/ */
1183
+ public create_tax_line(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1184
+ /** Get a document tax line. https://docs.veryfi.com/api/returns-document-tax-line/ */
1185
+ public get_tax_line(document_id: string, tax_line_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1186
+ /** Update a tax line. https://docs.veryfi.com/api/update-a-tax-line/ */
1187
+ public update_tax_line(document_id: string, tax_line_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1188
+ /** Delete a tax line. https://docs.veryfi.com/api/delete-a-tax-line/ */
1189
+ public delete_tax_line(document_id: string, tax_line_id: string): Promise<any>;
1190
+ /** Bulk process multiple documents. https://docs.veryfi.com/api/receipts-invoices/bulk-process-multiple-documents/ */
1191
+ public process_documents_bulk(file_urls: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1192
+ /**
1193
+ * Add a tag to a any document. https://docs.veryfi.com/api/anydocs/add-a-tag-to-a-A-doc/
1194
+ */
1195
+ public add_any_document_tag(document_id: string, tag: string): Promise<Tag>;
1196
+ /**
1197
+ * Add tags to a any document. https://docs.veryfi.com/api/anydocs/add-tags-to-a-A-doc/
1198
+ */
1199
+ public add_any_document_tags(document_id: string, tags: string[]): Promise<Tag>;
1200
+ /**
1201
+ * Unlink all tags from a any document. https://docs.veryfi.com/api/anydocs/unlink-all-tags-from-a-A-doc/
1202
+ */
1203
+ public delete_any_document_tags(document_id: string): Promise<any>;
1204
+ /**
1205
+ * Update a any document. https://docs.veryfi.com/api/anydocs/update-a-A-doc/
1206
+ */
1207
+ public update_any_document(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1208
+ /**
1209
+ * Get Blueprints. https://docs.veryfi.com/api/get-blueprints/
1210
+ */
1211
+ public get_blueprints({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1212
+ /**
1213
+ * Process a any document asynchronously. https://docs.veryfi.com/api/anydocs/process-a-A-doc-asynchronously/
1214
+ */
1215
+ public process_any_document_async(file_path: string, blueprint_name?: string, max_pages_to_process?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1216
+ /**
1217
+ * Process a any document asynchronously from a file stream. https://docs.veryfi.com/api/anydocs/process-a-A-doc-asynchronously/
1218
+ */
1219
+ public process_any_document_async_from_stream(file: stream.Readable, file_name: string, blueprint_name?: string, max_pages_to_process?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1220
+ /**
1221
+ * Process a any document asynchronously from a base64 string. https://docs.veryfi.com/api/anydocs/process-a-A-doc-asynchronously/
1222
+ */
1223
+ public process_any_document_async_from_base64(file_name: string, file_base64_string: string, blueprint_name?: string, max_pages_to_process?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1224
+ /**
1225
+ * Process a any document asynchronously from a URL. https://docs.veryfi.com/api/anydocs/process-a-A-doc-asynchronously/
1226
+ */
1227
+ public process_any_document_async_from_url(file_url?: string, file_urls?: string[], blueprint_name?: string, max_pages_to_process?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1228
+ /**
1229
+ * Add a tag to a bank statement. https://docs.veryfi.com/api/bank-statements/add-a-tag-to-a-bank-statement/
1230
+ */
1231
+ public add_bank_statement_tag(document_id: string, tag: string): Promise<Tag>;
1232
+ /**
1233
+ * Add tags to a bank statement. https://docs.veryfi.com/api/bank-statements/add-tags-to-a-bank-statement/
1234
+ */
1235
+ public add_bank_statement_tags(document_id: string, tags: string[]): Promise<Tag>;
1236
+ /**
1237
+ * Get tags assigned to a bank statement. https://docs.veryfi.com/api/bank-statements/get-bank-statement-tags/
1238
+ */
1239
+ public get_bank_statement_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1240
+ /**
1241
+ * Unlink a tag from a bank statement. https://docs.veryfi.com/api/bank-statements/unlink-a-tag-from-a-bank-statement/
1242
+ */
1243
+ public delete_bank_statement_tag(document_id: string, tag_id: string): Promise<any>;
1244
+ /**
1245
+ * Unlink all tags from a bank statement. https://docs.veryfi.com/api/bank-statements/unlink-all-tags-from-a-bank-statement/
1246
+ */
1247
+ public delete_bank_statement_tags(document_id: string): Promise<any>;
1248
+ /**
1249
+ * Update a bank statement. https://docs.veryfi.com/api/bank-statements/update-a-bank-statement/
1250
+ */
1251
+ public update_bank_statement(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1252
+ /**
1253
+ * Process a bank statement asynchronously. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement-asynchronously/
1254
+ */
1255
+ public process_bank_statement_async(file_path: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1256
+ /**
1257
+ * Process a bank statement asynchronously from a file stream. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement-asynchronously/
1258
+ */
1259
+ public process_bank_statement_async_from_stream(file: stream.Readable, file_name: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1260
+ /**
1261
+ * Process a bank statement asynchronously from a base64 string. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement-asynchronously/
1262
+ */
1263
+ public process_bank_statement_async_from_base64(file_name: string, file_base64_string: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1264
+ /**
1265
+ * Process a bank statement asynchronously from a URL. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement-asynchronously/
1266
+ */
1267
+ public process_bank_statement_async_from_url(file_url?: string, file_urls?: string[], bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1268
+ /**
1269
+ * Split and process multiple bank statements. https://docs.veryfi.com/api/split-and-process-multiple-bank-statements/
1270
+ */
1271
+ public split_bank_statements(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1272
+ /**
1273
+ * Split and process multiple bank statements from a file stream. https://docs.veryfi.com/api/split-and-process-multiple-bank-statements/
1274
+ */
1275
+ public split_bank_statements_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1276
+ /**
1277
+ * Split and process multiple bank statements from a base64 string. https://docs.veryfi.com/api/split-and-process-multiple-bank-statements/
1278
+ */
1279
+ public split_bank_statements_from_base64(file_name: string, file_base64_string: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1280
+ /**
1281
+ * Split and process multiple bank statements from a URL. https://docs.veryfi.com/api/split-and-process-multiple-bank-statements/
1282
+ */
1283
+ public split_bank_statements_from_url(file_url?: string, file_urls?: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1284
+ /**
1285
+ * Get Bank Statement sets. https://docs.veryfi.com/api/get-bank-statement-sets/
1286
+ */
1287
+ public get_bank_statement_sets(page?: number, page_size?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1288
+ /**
1289
+ * Get a Bank Statement set. https://docs.veryfi.com/api/get-a-bank-statement-set/
1290
+ */
1291
+ public get_bank_statement_set(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1292
+ /**
1293
+ * Add a tag to a business card. https://docs.veryfi.com/api/add-a-tag-to-a-business-card/
1294
+ */
1295
+ public add_business_card_tag(document_id: string, tag: string): Promise<Tag>;
1296
+ /**
1297
+ * Add tags to a business card. https://docs.veryfi.com/api/add-tags-to-a-business-card/
1298
+ */
1299
+ public add_business_card_tags(document_id: string, tags: string[]): Promise<Tag>;
1300
+ /**
1301
+ * Get tags assigned to a business card. https://docs.veryfi.com/api/get-business-card-tags/
1302
+ */
1303
+ public get_business_card_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1304
+ /**
1305
+ * Unlink a tag from a business card. https://docs.veryfi.com/api/unlink-a-tag-from-a-business-card/
1306
+ */
1307
+ public delete_business_card_tag(document_id: string, tag_id: string): Promise<any>;
1308
+ /**
1309
+ * Unlink all tags from a business card. https://docs.veryfi.com/api/unlink-all-tags-from-a-business-card/
1310
+ */
1311
+ public delete_business_card_tags(document_id: string): Promise<any>;
1312
+ /**
1313
+ * Update a business card. https://docs.veryfi.com/api/business-cards/update-a-business-card/
1314
+ */
1315
+ public update_business_card(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1316
+ /**
1317
+ * Add a tag to a check. https://docs.veryfi.com/api/checks/add-a-tag-to-a-check/
1318
+ */
1319
+ public add_check_tag(document_id: string, tag: string): Promise<Tag>;
1320
+ /**
1321
+ * Add tags to a check. https://docs.veryfi.com/api/checks/add-tags-to-a-check/
1322
+ */
1323
+ public add_check_tags(document_id: string, tags: string[]): Promise<Tag>;
1324
+ /**
1325
+ * Get tags assigned to a check. https://docs.veryfi.com/api/checks/get-check-tags/
1326
+ */
1327
+ public get_check_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1328
+ /**
1329
+ * Unlink a tag from a check. https://docs.veryfi.com/api/checks/unlink-a-tag-from-a-check/
1330
+ */
1331
+ public delete_check_tag(document_id: string, tag_id: string): Promise<any>;
1332
+ /**
1333
+ * Unlink all tags from a check. https://docs.veryfi.com/api/checks/unlink-all-tags-from-a-check/
1334
+ */
1335
+ public delete_check_tags(document_id: string): Promise<any>;
1336
+ /**
1337
+ * Update a check. https://docs.veryfi.com/api/checks/update-a-check/
1338
+ */
1339
+ public update_check(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1340
+ /**
1341
+ * Process a check asynchronously. https://docs.veryfi.com/api/checks/process-a-check-asynchronously/
1342
+ */
1343
+ public process_check_async(file_path: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1344
+ /**
1345
+ * Process a check asynchronously from a file stream. https://docs.veryfi.com/api/checks/process-a-check-asynchronously/
1346
+ */
1347
+ public process_check_async_from_stream(file: stream.Readable, file_name: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1348
+ /**
1349
+ * Process a check asynchronously from a base64 string. https://docs.veryfi.com/api/checks/process-a-check-asynchronously/
1350
+ */
1351
+ public process_check_async_from_base64(file_name: string, file_base64_string: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1352
+ /**
1353
+ * Process a check asynchronously from a URL. https://docs.veryfi.com/api/checks/process-a-check-asynchronously/
1354
+ */
1355
+ public process_check_async_from_url(file_url?: string, file_urls?: string[], bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1356
+ /**
1357
+ * Process a check with remittance. https://docs.veryfi.com/api/checks/process-a-check-with-remittance/
1358
+ */
1359
+ public process_check_with_remittance(file_path: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1360
+ /**
1361
+ * Process a check with remittance from a file stream. https://docs.veryfi.com/api/checks/process-a-check-with-remittance/
1362
+ */
1363
+ public process_check_with_remittance_from_stream(file: stream.Readable, file_name: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1364
+ /**
1365
+ * Process a check with remittance from a base64 string. https://docs.veryfi.com/api/checks/process-a-check-with-remittance/
1366
+ */
1367
+ public process_check_with_remittance_from_base64(file_name: string, file_base64_string: string, bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1368
+ /**
1369
+ * Process a check with remittance from a URL. https://docs.veryfi.com/api/checks/process-a-check-with-remittance/
1370
+ */
1371
+ public process_check_with_remittance_from_url(file_url?: string, file_urls?: string[], bounding_boxes?: boolean, confidence_details?: boolean, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1372
+ /**
1373
+ * Add a tag to a W-2. https://docs.veryfi.com/api/add-a-tag-to-a-w-2/
1374
+ */
1375
+ public add_w2_tag(document_id: string, tag: string): Promise<Tag>;
1376
+ /**
1377
+ * Add tags to a W-2. https://docs.veryfi.com/api/add-tags-to-a-w-2/
1378
+ */
1379
+ public add_w2_tags(document_id: string, tags: string[]): Promise<Tag>;
1380
+ /**
1381
+ * Get tags assigned to a W-2. https://docs.veryfi.com/api/get-w-2-tags/
1382
+ */
1383
+ public get_w2_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1384
+ /**
1385
+ * Unlink a tag from a W-2. https://docs.veryfi.com/api/unlink-a-tag-from-a-w-2/
1386
+ */
1387
+ public delete_w2_tag(document_id: string, tag_id: string): Promise<any>;
1388
+ /**
1389
+ * Unlink all tags from a W-2. https://docs.veryfi.com/api/unlink-all-tags-from-a-w-2/
1390
+ */
1391
+ public delete_w2_tags(document_id: string): Promise<any>;
1392
+ /**
1393
+ * Update a W-2. https://docs.veryfi.com/api/w2s/update-a-w-2/
1394
+ */
1395
+ public update_w2(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1396
+ /**
1397
+ * Split and process a PDF with multiple W-2s. https://docs.veryfi.com/api/split-and-process-a-pdf-with-multiple-w-2-s/
1398
+ */
1399
+ public split_w2s(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1400
+ /**
1401
+ * Split and process a PDF with multiple W-2s from a file stream. https://docs.veryfi.com/api/split-and-process-a-pdf-with-multiple-w-2-s/
1402
+ */
1403
+ public split_w2s_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1404
+ /**
1405
+ * Split and process a PDF with multiple W-2s from a base64 string. https://docs.veryfi.com/api/split-and-process-a-pdf-with-multiple-w-2-s/
1406
+ */
1407
+ public split_w2s_from_base64(file_name: string, file_base64_string: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1408
+ /**
1409
+ * Split and process a PDF with multiple W-2s from a URL. https://docs.veryfi.com/api/split-and-process-a-pdf-with-multiple-w-2-s/
1410
+ */
1411
+ public split_w2s_from_url(file_url?: string, file_urls?: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1412
+ /**
1413
+ * Get W-2 sets. https://docs.veryfi.com/api/get-w-2-sets/
1414
+ */
1415
+ public get_w2_sets(page?: number, page_size?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1416
+ /**
1417
+ * Get a W-2 set. https://docs.veryfi.com/api/get-a-w-2-set/
1418
+ */
1419
+ public get_w2_set(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1420
+ /**
1421
+ * Add a tag to a W-8BEN-E. https://docs.veryfi.com/api/add-a-tag-to-a-w-8-ben-e/
1422
+ */
1423
+ public add_w8bene_tag(document_id: string, tag: string): Promise<Tag>;
1424
+ /**
1425
+ * Add tags to a W-8BEN-E. https://docs.veryfi.com/api/add-tags-to-a-w-8-ben-e/
1426
+ */
1427
+ public add_w8bene_tags(document_id: string, tags: string[]): Promise<Tag>;
1428
+ /**
1429
+ * Get tags assigned to a W-8BEN-E. https://docs.veryfi.com/api/get-w-8-ben-e-tags/
1430
+ */
1431
+ public get_w8bene_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1432
+ /**
1433
+ * Unlink a tag from a W-8BEN-E. https://docs.veryfi.com/api/unlink-a-tag-from-a-w-8-ben-e/
1434
+ */
1435
+ public delete_w8bene_tag(document_id: string, tag_id: string): Promise<any>;
1436
+ /**
1437
+ * Unlink all tags from a W-8BEN-E. https://docs.veryfi.com/api/unlink-all-tags-from-a-w-8-ben-e/
1438
+ */
1439
+ public delete_w8bene_tags(document_id: string): Promise<any>;
1440
+ /**
1441
+ * Update a W-8BEN-E. https://docs.veryfi.com/api/w-8ben-e/update-a-w-8-ben-e/
1442
+ */
1443
+ public update_w8bene(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1444
+ /**
1445
+ * Add a tag to a W-9. https://docs.veryfi.com/api/add-a-tag-to-a-w-9/
1446
+ */
1447
+ public add_w9_tag(document_id: string, tag: string): Promise<Tag>;
1448
+ /**
1449
+ * Add tags to a W-9. https://docs.veryfi.com/api/add-tags-to-a-w-9/
1450
+ */
1451
+ public add_w9_tags(document_id: string, tags: string[]): Promise<Tag>;
1452
+ /**
1453
+ * Get tags assigned to a W-9. https://docs.veryfi.com/api/get-w-9-tags/
1454
+ */
1455
+ public get_w9_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1456
+ /**
1457
+ * Unlink a tag from a W-9. https://docs.veryfi.com/api/unlink-a-tag-from-a-w-9/
1458
+ */
1459
+ public delete_w9_tag(document_id: string, tag_id: string): Promise<any>;
1460
+ /**
1461
+ * Unlink all tags from a W-9. https://docs.veryfi.com/api/unlink-all-tags-from-a-w-9/
1462
+ */
1463
+ public delete_w9_tags(document_id: string): Promise<any>;
1464
+ /**
1465
+ * Update a W-9. https://docs.veryfi.com/api/w9s/update-a-w-9/
1466
+ */
1467
+ public update_w9(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1468
+ /**
1469
+ * Process a contract. https://docs.veryfi.com/api/contracts/process-a-contract/
1470
+ */
1471
+ public process_contract(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1472
+ /**
1473
+ * Process a contract from a file stream. https://docs.veryfi.com/api/contracts/process-a-contract/
1474
+ */
1475
+ public process_contract_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1476
+ /**
1477
+ * Process a contract from a base64 string. https://docs.veryfi.com/api/contracts/process-a-contract/
1478
+ */
1479
+ public process_contract_from_base64(file_name: string, file_base64_string: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1480
+ /**
1481
+ * Process a contract from a URL. https://docs.veryfi.com/api/contracts/process-a-contract/
1482
+ */
1483
+ public process_contract_from_url(file_url?: string, file_urls?: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1484
+ /**
1485
+ * Get a contract. https://docs.veryfi.com/api/contracts/get-a-contract/
1486
+ */
1487
+ public get_contract(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1488
+ /**
1489
+ * Get contracts. https://docs.veryfi.com/api/contracts/get-contracts/
1490
+ */
1491
+ public get_contracts(page?: number, page_size?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1492
+ /**
1493
+ * Update a contract. https://docs.veryfi.com/api/contracts/update-a-contract/
1494
+ */
1495
+ public update_contract(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1496
+ /**
1497
+ * Delete a contract. https://docs.veryfi.com/api/contracts/delete-a-contract/
1498
+ */
1499
+ public delete_contract(document_id: string): Promise<any>;
1500
+ /**
1501
+ * Add a tag to a contract. https://docs.veryfi.com/api/add-a-tag-to-a-contract/
1502
+ */
1503
+ public add_contract_tag(document_id: string, tag: string): Promise<Tag>;
1504
+ /**
1505
+ * Add tags to a contract. https://docs.veryfi.com/api/add-tags-to-a-contract/
1506
+ */
1507
+ public add_contract_tags(document_id: string, tags: string[]): Promise<Tag>;
1508
+ /**
1509
+ * Get tags assigned to a contract. https://docs.veryfi.com/api/get-contract-tags/
1510
+ */
1511
+ public get_contract_tags(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<{tags: Tag[]}>;
1512
+ /**
1513
+ * Unlink a tag from a contract. https://docs.veryfi.com/api/unlink-a-tag-from-a-contract/
1514
+ */
1515
+ public delete_contract_tag(document_id: string, tag_id: string): Promise<any>;
1516
+ /**
1517
+ * Unlink all tags from a contract. https://docs.veryfi.com/api/unlink-all-tags-from-a-contract/
1518
+ */
1519
+ public delete_contract_tags(document_id: string): Promise<any>;
1520
+ /**
1521
+ * Convert a document to markdown. https://docs.veryfi.com/api/parse/convert-a-document-to-markdown/
1522
+ */
1523
+ public process_markdown_document(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1524
+ /**
1525
+ * Convert a document to markdown from a file stream. https://docs.veryfi.com/api/parse/convert-a-document-to-markdown/
1526
+ */
1527
+ public process_markdown_document_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1528
+ /**
1529
+ * Convert a document to markdown from a base64 string. https://docs.veryfi.com/api/parse/convert-a-document-to-markdown/
1530
+ */
1531
+ public process_markdown_document_from_base64(file_name: string, file_base64_string: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1532
+ /**
1533
+ * Convert a document to markdown from a URL. https://docs.veryfi.com/api/parse/convert-a-document-to-markdown/
1534
+ */
1535
+ public process_markdown_document_from_url(file_url?: string, file_urls?: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1536
+ /**
1537
+ * Process a markdown document asynchronously. https://docs.veryfi.com/api/parse/process-a-markdown-document-asynchronously/
1538
+ */
1539
+ public process_markdown_document_async(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1540
+ /**
1541
+ * Process a markdown document asynchronously from a file stream. https://docs.veryfi.com/api/parse/process-a-markdown-document-asynchronously/
1542
+ */
1543
+ public process_markdown_document_async_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1544
+ /**
1545
+ * Process a markdown document asynchronously from a base64 string. https://docs.veryfi.com/api/parse/process-a-markdown-document-asynchronously/
1546
+ */
1547
+ public process_markdown_document_async_from_base64(file_name: string, file_base64_string: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1548
+ /**
1549
+ * Process a markdown document asynchronously from a URL. https://docs.veryfi.com/api/parse/process-a-markdown-document-asynchronously/
1550
+ */
1551
+ public process_markdown_document_async_from_url(file_url?: string, file_urls?: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1552
+ /**
1553
+ * Process a markdown document set. https://docs.veryfi.com/api/parse/process-a-markdown-document-set/
1554
+ */
1555
+ public process_markdown_document_set(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1556
+ /**
1557
+ * Process a markdown document set from a file stream. https://docs.veryfi.com/api/parse/process-a-markdown-document-set/
1558
+ */
1559
+ public process_markdown_document_set_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1560
+ /**
1561
+ * Process a markdown document set from a base64 string. https://docs.veryfi.com/api/parse/process-a-markdown-document-set/
1562
+ */
1563
+ public process_markdown_document_set_from_base64(file_name: string, file_base64_string: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1564
+ /**
1565
+ * Process a markdown document set from a URL. https://docs.veryfi.com/api/parse/process-a-markdown-document-set/
1566
+ */
1567
+ public process_markdown_document_set_from_url(file_url?: string, file_urls?: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1568
+ /**
1569
+ * Get Markdown Documents. https://docs.veryfi.com/api/parse/get-markdown-documents/
1570
+ */
1571
+ public get_markdown_documents(page?: number, page_size?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1572
+ /**
1573
+ * Get a Markdown Document. https://docs.veryfi.com/api/parse/get-a-markdown-document/
1574
+ */
1575
+ public get_markdown_document(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1576
+ /**
1577
+ * Update a Markdown Document. https://docs.veryfi.com/api/parse/update-a-markdown-document/
1578
+ */
1579
+ public update_markdown_document(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1580
+ /**
1581
+ * Delete a Markdown Document. https://docs.veryfi.com/api/parse/delete-a-markdown-document/
1582
+ */
1583
+ public delete_markdown_document(document_id: string): Promise<any>;
1584
+ /**
1585
+ * Get Markdown Document Sets. https://docs.veryfi.com/api/parse/get-markdown-document-sets/
1586
+ */
1587
+ public get_markdown_document_sets(page?: number, page_size?: number, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1588
+ /**
1589
+ * Get a Markdown Document Set. https://docs.veryfi.com/api/parse/get-a-markdown-document-set/
1590
+ */
1591
+ public get_markdown_document_set(document_id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1592
+ /**
1593
+ * Classify and possibly extract data from a document. https://docs.veryfi.com/api/classify-and-possibly-extract-data-from-a-document/
1594
+ */
1595
+ public extract_document(file_path: string, document_types: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1596
+ /**
1597
+ * Classify and possibly extract data from a document from a file stream. https://docs.veryfi.com/api/classify-and-possibly-extract-data-from-a-document/
1598
+ */
1599
+ public extract_document_from_stream(file: stream.Readable, file_name: string, document_types: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1600
+ /**
1601
+ * Classify and possibly extract data from a document from a base64 string. https://docs.veryfi.com/api/classify-and-possibly-extract-data-from-a-document/
1602
+ */
1603
+ public extract_document_from_base64(file_name: string, file_base64_string: string, document_types: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1604
+ /**
1605
+ * Classify and possibly extract data from a document from a URL. https://docs.veryfi.com/api/classify-and-possibly-extract-data-from-a-document/
1606
+ */
1607
+ public extract_document_from_url(file_url?: string, file_urls?: string[], document_types: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1608
+ /**
1609
+ * Get devices from blocklist. https://docs.veryfi.com/api/get-devices-from-blocklist/
1610
+ */
1611
+ public get_fraud_blocklist({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1612
+ /**
1613
+ * Add devices to blocklist. https://docs.veryfi.com/api/add-devices-to-blocklist/
1614
+ */
1615
+ public add_devices_to_blocklist(device_ids: string[], {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1616
+ /**
1617
+ * Remove a device from blocklist. https://docs.veryfi.com/api/remove-a-device-from-blocklist/
1618
+ */
1619
+ public remove_device_from_blocklist(device_id: string): Promise<any>;
1620
+ /**
1621
+ * Get ocr-counts. https://docs.veryfi.com/api/get-ocr-counts/
1622
+ */
1623
+ public get_ocr_counts(ocr_type?: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1624
+ /**
1625
+ * Get OpenAPI schema. https://docs.veryfi.com/api/get-open-api-schema/
1626
+ */
1627
+ public get_open_api_schema({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1628
+ /** Get release notifications. https://docs.veryfi.com/api/get-release-notifications/ */
1629
+ public get_release_notifications({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1630
+ /** Retrieve api-keys list. https://docs.veryfi.com/api/settings/retrieve-api-keys-list/ */
1631
+ public get_api_keys({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1632
+ /** Create api-key. https://docs.veryfi.com/api/settings/create-api-key/ */
1633
+ public create_api_key(name: any, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1634
+ /** Retrieve api-key. https://docs.veryfi.com/api/settings/retrieve-api-key/ */
1635
+ public get_api_key(id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1636
+ /** Update api-key. https://docs.veryfi.com/api/settings/update-api-key/ */
1637
+ public update_api_key(id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1638
+ /** Revoke api-key. https://docs.veryfi.com/api/settings/revoke-api-key/ */
1639
+ public revoke_api_key(id: string): Promise<any>;
1640
+ /** Rotate api-key. https://docs.veryfi.com/api/settings/rotate-api-key/ */
1641
+ public rotate_api_key(id: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1642
+ /** Available permissions. https://docs.veryfi.com/api/settings/available-permissions/ */
1643
+ public get_api_key_permissions({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1644
+ /** Verify the calling key. https://docs.veryfi.com/api/settings/verify-the-calling-key/ */
1645
+ public verify_api_key({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1646
+ /** Retrieve client-keys list. https://docs.veryfi.com/api/settings/retrieve-client-keys-list/ */
1647
+ public get_client_keys({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1648
+ /** Create client-keys. https://docs.veryfi.com/api/settings/create-client-keys/ */
1649
+ public create_client_keys({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1650
+ /** Remove a client-key. https://docs.veryfi.com/api/settings/remove-a-client-key/ */
1651
+ public delete_client_key(id: string): Promise<any>;
1652
+ /** Reset client-keys. https://docs.veryfi.com/api/settings/reset-client-keys/ */
1653
+ public reset_client_keys({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1654
+ /** Get Tls Certificates. https://docs.veryfi.com/api/get-tls-certificates/ */
1655
+ public get_tls_certificates({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1656
+ /** Process a Tls Certificate. https://docs.veryfi.com/api/process-a-tls-certificate/ */
1657
+ public process_tls_certificate({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1658
+ /** Delete a Tls Certificate. https://docs.veryfi.com/api/delete-a-tls-certificate/ */
1659
+ public delete_tls_certificate(certificate_id: string): Promise<any>;
1660
+ /** Get webhooks. https://docs.veryfi.com/api/settings/get-webhooks/ */
1661
+ public get_webhooks({...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1662
+ /** Add a webhook. https://docs.veryfi.com/api/settings/add-a-webhook/ */
1663
+ public add_webhook(url: any, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1664
+ /** Confirm a webhook. https://docs.veryfi.com/api/settings/confirm-a-webhook/ */
1665
+ public confirm_webhook(url: any, secret: any, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1666
+ /** Split and process a PDF. https://docs.veryfi.com/api/receipts-invoices/split-and-process-a-pdf/ */
1667
+ public split_document(file_path: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1668
+ /** Split and process a PDF from a file stream. */
1669
+ public split_document_from_stream(file: stream.Readable, file_name: string, {...kwargs}?: VeryfiExtraArgs): Promise<JsonObject>;
1670
+
1135
1671
  }
1136
1672
 
1137
1673
  /**
@@ -1,9 +1,8 @@
1
1
  /**
2
- * Additional request parameters type
2
+ * Additional request parameters type.
3
+ * Nested objects, arrays, and nulls are allowed because several Veryfi
4
+ * body fields (device_data, vendor, line_items, document_types, tags) are not scalars.
3
5
  */
4
- export declare type VeryfiExtraArgs = Record<
5
- string | number | symbol,
6
- string | number | boolean
7
- >;
6
+ export declare type VeryfiExtraArgs = Record<string | number | symbol, any>;
8
7
 
9
8
  export type JsonObject = Record<string, any>;
package/lib/w2s/getW2.js CHANGED
@@ -11,7 +11,6 @@ Client.prototype.get_w2 = async function (
11
11
  {...kwargs} = {}
12
12
  ) {
13
13
  let endpoint_name = `/w2s/${document_id}/`;
14
- let request_arguments = {"id": document_id};
15
- let response = await this._request("GET", endpoint_name, request_arguments, kwargs, false);
14
+ let response = await this._request("GET", endpoint_name, {}, kwargs, false);
16
15
  return response['data'];
17
16
  }
@@ -0,0 +1,14 @@
1
+ const Client = require('../client/constructor');
2
+ /**
3
+ * Get a W-2 set. https://docs.veryfi.com/api/get-a-w-2-set/
4
+ *
5
+ * @memberof Client
6
+ * @param {string} document_id ID of the resource
7
+ * @param {Object} kwargs Additional request parameters
8
+ * @returns {JSON} API response data
9
+ */
10
+ Client.prototype.get_w2_set = async function (document_id, {...kwargs} = {}) {
11
+ let endpoint_name = `/w2s-set/${document_id}/`;
12
+ let response = await this._request("GET", endpoint_name, {}, kwargs, false);
13
+ return response['data'];
14
+ }
@@ -0,0 +1,23 @@
1
+ const Client = require('../client/constructor');
2
+ /**
3
+ * Get W-2 sets. https://docs.veryfi.com/api/get-w-2-sets/
4
+ *
5
+ * @memberof Client
6
+ * @param {number} page Page number
7
+ * @param {number} page_size Results per page
8
+ * @param {Object} kwargs Additional request parameters
9
+ * @returns {JSON} API response data
10
+ */
11
+ Client.prototype.get_w2_sets = async function (
12
+ page = 1,
13
+ page_size = 50,
14
+ {...kwargs} = {}
15
+ ) {
16
+ let endpoint_name = "/w2s-set/";
17
+ let query = Object.assign({
18
+ "page": page,
19
+ "page_size": page_size,
20
+ }, kwargs);
21
+ let response = await this._request("GET", endpoint_name, {}, query, false);
22
+ return response['data'];
23
+ }
@@ -0,0 +1,25 @@
1
+ const Client = require('../client/constructor');
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+ /**
5
+ * Split and process a PDF with multiple W-2s. https://docs.veryfi.com/api/split-and-process-a-pdf-with-multiple-w-2-s/
6
+ * @example
7
+ * veryfi_client.split_w2s('file/path')
8
+ *
9
+ * @memberof Client
10
+ * @param {String} file_path Path on disk to a file to submit
11
+ * @param {Object} kwargs Additional request parameters
12
+ * @returns {JSON} API response data
13
+ */
14
+ Client.prototype.split_w2s = async function (
15
+ file_path,
16
+ {...kwargs} = {}
17
+ ) {
18
+ let file = fs.createReadStream(file_path);
19
+ let file_name = path.basename(file_path);
20
+ return this.split_w2s_from_stream(
21
+ file,
22
+ file_name,
23
+ kwargs
24
+ );
25
+ }