@veryfi/veryfi-sdk 1.3.2 → 1.4.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 (83) hide show
  1. package/README.md +443 -145
  2. package/lib/anydocs/deleteAnyDocument.js +12 -0
  3. package/lib/anydocs/getAnyDocument.js +22 -0
  4. package/lib/anydocs/getAnyDocuments.js +30 -0
  5. package/lib/anydocs/processAnyDocument.js +33 -0
  6. package/lib/anydocs/processAnyDocumentBase64.js +31 -0
  7. package/lib/anydocs/processAnyDocumentStream.js +33 -0
  8. package/lib/anydocs/processAnyDocumentUrl.js +30 -0
  9. package/lib/bankstatements/deleteBankStatement.js +12 -0
  10. package/lib/bankstatements/getBankStatement.js +24 -0
  11. package/lib/bankstatements/getBankStatements.js +28 -0
  12. package/lib/bankstatements/processBankStatement.js +33 -0
  13. package/lib/bankstatements/processBankStatementBase64.js +31 -0
  14. package/lib/bankstatements/processBankStatementStream.js +31 -0
  15. package/lib/bankstatements/processBankStatementUrl.js +30 -0
  16. package/lib/businesscards/deleteBusinessCard.js +12 -0
  17. package/lib/businesscards/getBusinessCard.js +24 -0
  18. package/lib/businesscards/getBusinessCards.js +28 -0
  19. package/lib/businesscards/processBusinessCard.js +27 -0
  20. package/lib/businesscards/processBusinessCardBase64.js +25 -0
  21. package/lib/businesscards/processBusinessCardStream.js +25 -0
  22. package/lib/businesscards/processBusinessCardUrl.js +24 -0
  23. package/lib/checks/deleteCheck.js +12 -0
  24. package/lib/checks/getCheck.js +24 -0
  25. package/lib/checks/getChecks.js +28 -0
  26. package/lib/checks/processCheck.js +33 -0
  27. package/lib/checks/processCheckBase64.js +31 -0
  28. package/lib/checks/processCheckStream.js +31 -0
  29. package/lib/checks/processCheckUrl.js +30 -0
  30. package/lib/client/client.js +63 -0
  31. package/lib/client/constructor.js +27 -0
  32. package/lib/client/function.js +6 -0
  33. package/lib/client/generateSignature.js +26 -0
  34. package/lib/client/getHeaders.js +21 -0
  35. package/lib/client/getUrl.js +9 -0
  36. package/lib/client/request.js +58 -0
  37. package/lib/documents/deleteDocument.js +12 -0
  38. package/lib/documents/getDocument.js +14 -0
  39. package/lib/documents/getDocuments.js +31 -0
  40. package/lib/documents/processDocument.js +37 -0
  41. package/lib/documents/processDocumentBase64.js +37 -0
  42. package/lib/documents/processDocumentStream.js +33 -0
  43. package/lib/documents/processDocumentUrl.js +41 -0
  44. package/lib/documents/tags/addTag.js +14 -0
  45. package/lib/documents/tags/addTags.js +14 -0
  46. package/lib/documents/tags/deleteTags.js +12 -0
  47. package/lib/documents/tags/replaceTags.js +14 -0
  48. package/lib/documents/updateDocument.js +17 -0
  49. package/lib/types/BillTo.ts +11 -0
  50. package/lib/types/BoundingElement.ts +6 -0
  51. package/lib/types/Client.ts +1058 -0
  52. package/lib/types/LineItem.ts +24 -0
  53. package/lib/types/Payment.ts +8 -0
  54. package/lib/types/ShipTo.ts +7 -0
  55. package/lib/types/Tag.ts +4 -0
  56. package/lib/types/TaxLine.ts +9 -0
  57. package/lib/types/Vendor.ts +15 -0
  58. package/lib/types/VeryfiDocument.ts +93 -0
  59. package/lib/types/VeryfiExtraArgs.ts +9 -0
  60. package/lib/w2s/deleteW2.js +12 -0
  61. package/lib/w2s/getW2.js +17 -0
  62. package/lib/w2s/getW2s.js +13 -0
  63. package/lib/w2s/processW2.js +28 -0
  64. package/lib/w2s/processW2Base64.js +30 -0
  65. package/lib/w2s/processW2Stream.js +30 -0
  66. package/lib/w2s/processW2Url.js +32 -0
  67. package/lib/w8bene/deleteW8BENE.js +12 -0
  68. package/lib/w8bene/getW8BENE.js +24 -0
  69. package/lib/w8bene/getW8BENEs.js +28 -0
  70. package/lib/w8bene/processW8BENE.js +33 -0
  71. package/lib/w8bene/processW8BENEBase64.js +31 -0
  72. package/lib/w8bene/processW8BENEStream.js +31 -0
  73. package/lib/w8bene/processW8BENEUrl.js +30 -0
  74. package/lib/w9s/deleteW9.js +12 -0
  75. package/lib/w9s/getW9.js +24 -0
  76. package/lib/w9s/getW9s.js +28 -0
  77. package/lib/w9s/processW9.js +30 -0
  78. package/lib/w9s/processW9Base64.js +31 -0
  79. package/lib/w9s/processW9Stream.js +31 -0
  80. package/lib/w9s/processW9Url.js +27 -0
  81. package/package.json +4 -4
  82. package/lib/main.js +0 -783
  83. package/lib/types/main.d.ts +0 -541
@@ -1,541 +0,0 @@
1
- import fs from "fs";
2
- import path from "path";
3
-
4
- /**
5
- * Additional request parameters type
6
- */
7
- export declare type VeryfiExtraArgs = Record<
8
- string | number | symbol,
9
- string | number | boolean
10
- >;
11
-
12
- export declare type BoundingElement = {
13
- bounding_box?: null | number[];
14
- bounding_region?: null | number[];
15
- rotation?: null | number;
16
- value?: null | number | string;
17
- }
18
-
19
- export type JsonObject = Record<string, any>;
20
-
21
- /**
22
- * Object of data extracted from the document
23
- */
24
- export declare type VeryfiDocument = {
25
- abn_number?: null | string | BoundingElement;
26
- account_number?: null | string | BoundingElement;
27
- accounting_entry_type?: null | string;
28
- balance?: null | string | BoundingElement;
29
- barcodes?: null | string[] | BoundingElement[];
30
- bill_to?: null | BillTo;
31
- card_number?: null | string | BoundingElement;
32
- cashback?: null | number | BoundingElement;
33
- category?: null | string | BoundingElement;
34
- created_date?: null | string;
35
- currency_code?: null | string | BoundingElement;
36
- custom_fields?: null | VeryfiExtraArgs;
37
- date?: null | string | BoundingElement;
38
- default_category?: null | string | BoundingElement;
39
- delivery_date?: null | string | BoundingElement;
40
- delivery_note_number?: null | string | BoundingElement;
41
- discount?: null | number | BoundingElement;
42
- document_reference_number?: null | string | BoundingElement;
43
- document_title?: null | string | BoundingElement;
44
- document_type?: null | string | BoundingElement;
45
- due_date?: null | string | BoundingElement;
46
- duplicate_of?: null | number;
47
- exch_rate?: null | number;
48
- external_id?: null | string;
49
- final_balance?: null | number | BoundingElement;
50
- guest_count?: null | number | BoundingElement;
51
- id?: null | number;
52
- img_blur?: null | boolean;
53
- img_file_name?: null | string;
54
- img_thumbnail_url?: null | string;
55
- img_url?: null | string;
56
- incoterms?: null | number | BoundingElement;
57
- insurance?: null | number | BoundingElement;
58
- invoice_number?: null | string | BoundingElement;
59
- is_approved?: null | boolean;
60
- is_blurry?: null | boolean[];
61
- is_document?: null | boolean;
62
- is_duplicate?: null | boolean;
63
- is_money_in?: null | boolean | BoundingElement;
64
- license_plate_number?: null | string | BoundingElement;
65
- line_items?: null | LineItem[];
66
- line_items_with_scores?: null | LineItem[];
67
- notes?: null | string;
68
- ocr_text?: null | string;
69
- order_date?: null | string | BoundingElement;
70
- payment?: null | Payment;
71
- pdf_url?: null | string;
72
- previous_balance?: null | number | BoundingElement;
73
- purchase_order_number?: null | string | BoundingElement;
74
- rounding?: null | number | BoundingElement;
75
- server_name?: null | string | BoundingElement;
76
- service_end_date?: null | string;
77
- service_start_date?: null | string;
78
- ship_date?: null | string | BoundingElement;
79
- ship_to?: null | ShipTo;
80
- shipping?: null | number | BoundingElement;
81
- status?: null | string;
82
- store_number?: null | string | BoundingElement;
83
- subtotal?: null | number | BoundingElement;
84
- tags?: null | Tag[];
85
- tax?: null | number | BoundingElement;
86
- tax_lines?: null | TaxLine[];
87
- tip?: null | number | BoundingElement;
88
- total?: null | number | BoundingElement;
89
- total_pages?: null | number;
90
- total_quantity?: null | string | BoundingElement;
91
- total_weight?: null | string | BoundingElement;
92
- tracking_number?: null | string | BoundingElement;
93
- tracking_numbers?: null | BoundingElement[];
94
- updated_date?: null | string;
95
- vending_person?: null | string | BoundingElement;
96
- vending_person_number?: null | string | BoundingElement;
97
- vat_number?: null | string;
98
- vendor?: null | Vendor;
99
- vendors?: null | BoundingElement[];
100
- vin_number?: null | string | BoundingElement;
101
- warnings?: null | string[];
102
- weights?: null | BoundingElement[];
103
- };
104
-
105
- declare type LineItem = {
106
- date?: null | string | BoundingElement;
107
- description?: null | string | BoundingElement;
108
- discount?: null | number | BoundingElement;
109
- end_date?: null | string | BoundingElement;
110
- hsn?: null | string;
111
- id?: null | number;
112
- order?: null | number;
113
- price?: null | number | BoundingElement;
114
- quantity?: null | number | BoundingElement;
115
- reference?: null | string | BoundingElement;
116
- section?: null | string;
117
- sku?: null | string | BoundingElement;
118
- start_date?: null | string;
119
- tags?: null | null[];
120
- tax?: null | number | BoundingElement;
121
- tax_rate?: null | number;
122
- total?: null | number | BoundingElement;
123
- type?: null | string;
124
- unit_of_measure?: null | string;
125
- };
126
-
127
- declare type TaxLine = {
128
- base?: null | number | BoundingElement;
129
- name?: null | string | BoundingElement;
130
- order?: null | number;
131
- rate?: null | number | BoundingElement;
132
- total?: null | number | BoundingElement;
133
- };
134
-
135
- declare type Vendor = {
136
- address?: null | string | BoundingElement;
137
- category?: null | string | BoundingElement;
138
- email?: null | string | BoundingElement;
139
- fax_number?: null | string | BoundingElement;
140
- name?: null | string | BoundingElement;
141
- phone_number?: null | string | BoundingElement;
142
- raw_name?: null | string;
143
- vendor_logo?: null | string | BoundingElement;
144
- vendor_reg_number?: null | string | BoundingElement;
145
- vendor_type?: null | string;
146
- web?: null | string | BoundingElement;
147
- };
148
-
149
- declare type Payment = {
150
- card_number?: null | string | BoundingElement;
151
- display_name?: null | string | BoundingElement;
152
- terms?: null | number | BoundingElement;
153
- type?: null | string;
154
- };
155
-
156
- declare type Tag = {
157
- id?: null | number;
158
- name?: null | string;
159
- };
160
-
161
- declare type BillTo = {
162
- address?: null | string | BoundingElement;
163
- email?: null | string | BoundingElement;
164
- name?: null | string | BoundingElement;
165
- parsed_address?: null | string;
166
- phone_number?: null | number | string | BoundingElement;
167
- reg_number?: null | number | string | BoundingElement;
168
- vat_number?: null | number | string | BoundingElement;
169
- };
170
-
171
- declare type ShipTo = {
172
- address?: null | string | BoundingElement;
173
- name?: null | string | BoundingElement;
174
- parsed_address?: null | string;
175
- };
176
-
177
- export declare class Client {
178
- /**
179
- * Create instance of a Client
180
- * @class
181
- * @param {string} client_id Your Veryfi client id
182
- * @param {string | undefined} client_secret Your Veryfi client secret
183
- * @param {string} username Your Veryfi username
184
- * @param {string} api_key Your Veryfi API key
185
- * @param {string} base_url
186
- * @param {string} api_version
187
- * @param {number} timeout
188
- */
189
- constructor(
190
- client_id: string,
191
- client_secret: string | undefined,
192
- username: string,
193
- api_key: string,
194
- base_url?: string,
195
- api_version?: string,
196
- timeout?: number
197
- );
198
-
199
- client_id: string;
200
-
201
- client_secret: string | undefined;
202
-
203
- username: string;
204
-
205
- api_key: string;
206
-
207
- base_url: string;
208
-
209
- api_version: string;
210
-
211
- CATEGORIES: string[];
212
-
213
- private _get_headers;
214
-
215
- private _get_url;
216
-
217
- private _generate_signature;
218
-
219
- private _request;
220
-
221
- /**
222
- * Get all documents
223
- * @memberof Client
224
- * @returns {Promise<VeryfiDocument>} Object of previously processed documents
225
- */
226
- public get_documents(
227
- page?: number,
228
- page_size?: number,
229
- bounding_boxes?: boolean,
230
- confidence_details?: boolean
231
- ): Promise<VeryfiDocument[]>;
232
-
233
- /**
234
- * Retrieve document by ID
235
- * @memberof Client
236
- * @param {string} document_id ID of the document you'd like to retrieve
237
- * @returns {Promise<VeryfiDocument>} Object of data extracted from the document
238
- */
239
- public get_document(document_id: string): Promise<VeryfiDocument>;
240
-
241
- /**
242
- * Process a document and extract all the fields from it
243
- * @example
244
- * veryfi_client.process_document_buffer('buffer',
245
- * 'receipt.png',
246
- * ['Entertainment','Food'],
247
- * true,
248
- * {'extra': 'parameters'})
249
- *
250
- * @memberof Client
251
- * @param {ReadStream} file ReadStream of a file to submit for data extraction
252
- * @param {String} file_name The file name including the extension
253
- * @param {Array} categories List of categories Veryfi can use to categorize the document
254
- * @param {Boolean} delete_after_processing Delete this document from Veryfi after data has been extracted
255
- * @param {Object} kwargs Additional request parameters
256
- * @returns {JSON} Data extracted from the document
257
- */
258
- public process_document_stream(
259
- file: fs.ReadStream,
260
- file_name: string,
261
- categories?: string[],
262
- delete_after_processing?: boolean,
263
- {...kwargs}?: VeryfiExtraArgs
264
- ): Promise<VeryfiDocument>;
265
-
266
- /**
267
- * Process a document and extract all the fields from it
268
- * @example
269
- * veryfi_client.process_document_buffer_string('base64_encoded_string',
270
- * 'receipt.png',
271
- * ['Entertainment','Food'],
272
- * true,
273
- * {'extra': 'parameters'})
274
- *
275
- * @memberof Client
276
- * @param {String} base64_encoded_string Buffer string of a file to submit for data extraction
277
- * @param {String} file_name The file name including the extension
278
- * @param {Array} categories List of categories Veryfi can use to categorize the document
279
- * @param {Boolean} delete_after_processing Delete this document from Veryfi after data has been extracted
280
- * @param {Object} kwargs Additional request parameters
281
- * @returns {JSON} Data extracted from the document
282
- */
283
- public process_document_base64string(
284
- base64_encoded_string: string,
285
- file_name: string,
286
- categories?: string[],
287
- delete_after_processing?: boolean,
288
- {...kwargs}?: VeryfiExtraArgs
289
- ): Promise<VeryfiDocument>;
290
-
291
- /**
292
- * Process a document and extract all the fields from it
293
- * @example
294
- * veryfi_client.process_document(
295
- * 'file/path',
296
- * ['Entertainment', 'Food'],
297
- * true,
298
- * { extra: 'parameters' }
299
- * )
300
- * @memberof Client
301
- * @param {string} file_path Path on disk to a file to submit for data extraction
302
- * @param {string[]} categories List of categories Veryfi can use to categorize the document
303
- * @param {boolean} delete_after_processing Delete this document from Veryfi after data has been extracted
304
- * @param {VeryfiExtraArgs} kwargs Additional request parameters
305
- * @returns {Promise<VeryfiDocument>} Object of data extracted from the document
306
- */
307
- public process_document(
308
- file_path: string,
309
- categories?: string[],
310
- delete_after_processing?: boolean,
311
- {...kwargs}?: VeryfiExtraArgs
312
- ): Promise<VeryfiDocument>;
313
-
314
- /**
315
- * Process document from url and extract all the fields from it.
316
- * @memberof Client
317
- * @param {string} file_url Required if file_urls isn't specified. Publicly accessible URL to a file, e.g. 'https://cdn.example.com/receipt.jpg'.
318
- * @param {string[]} file_urls Required if file_url isn't specified. List of publicly accessible URLs to multiple files, e.g. ['https://cdn.example.com/receipt1.jpg', 'https://cdn.example.com/receipt2.jpg']
319
- * @param {string[]} categories List of categories to use when categorizing the document
320
- * @param {boolean} delete_after_processing Delete this document from Veryfi after data has been extracted
321
- * @param {number} boost_mode Flag that tells Veryfi whether boost mode should be enabled. When set to 1, Veryfi will skip data enrichment steps, but will process the document faster. Default value for this flag is 0
322
- * @param {string} external_id Optional custom document identifier. Use this if you would like to assign your own ID to documents
323
- * @param {number} max_pages_to_process When sending a long document to Veryfi for processing, this parameter controls how many pages of the document will be read and processed, starting from page 1.
324
- * @param {VeryfiExtraArgs} kwargs Additional request parameters
325
- * @return {Promise<VeryfiDocument>} Object of data extracted from the document
326
- */
327
- public process_document_url(
328
- file_url?: string,
329
- file_urls?: string[],
330
- categories?: string[],
331
- delete_after_processing?: boolean,
332
- boost_mode?: number,
333
- external_id?: string,
334
- max_pages_to_process?: number,
335
- {...kwargs}?: VeryfiExtraArgs
336
- ): Promise<VeryfiDocument>;
337
-
338
- /**
339
- * Delete document from Veryfi
340
- * @memberof Client
341
- * @param {string} document_id ID of the document you'd like to delete
342
- * @returns {Promise<VeryfiDocument>} Object of data extracted from the document
343
- */
344
- public delete_document(document_id: string): Promise<any>;
345
-
346
- /**
347
- * Update data for a previously processed document, including almost any field like `vendor`, `date`, `notes` etc.
348
- * @example
349
- * veryfi_client.update_document(
350
- * id,
351
- * { date: '2021-01-01', notes: 'look what I did' }
352
- * )
353
- * @memberof Client
354
- * @param {string} document_id ID of the document you'd like to update
355
- * @param {VeryfiExtraArgs} kwargs fields to update
356
- * @return {Promise<VeryfiDocument>} Object of data extracted from the document with updated fields, if fields are writable. Otherwise, a document with unchanged fields.
357
- */
358
- public update_document(
359
- document_id: string,
360
- {...kwargs}?: VeryfiExtraArgs
361
- ): Promise<VeryfiDocument>;
362
-
363
- /**
364
- * Add a new tag on an existing document
365
- *
366
- * @param {number} document_id ID of the document you'd like to add a Tag
367
- * @param {string} tag name to add
368
- * @return {Promise<Tag>} response about tag added.
369
- */
370
- public add_tag(document_id: string, tag: string): Promise<Tag>;
371
-
372
- /**
373
- * Delete all tags on an existing document
374
- *
375
- * @param {number} document_id ID of the document you'd like to delete all Tags
376
- * @return {Promise<any>} response about deleted tags.
377
- */
378
- public delete_tags(document_id: string): Promise<any>;
379
-
380
- /**
381
- * Add multiple tags on an existing document
382
- *
383
- * @param {number} document_id ID of the document you'd like to add a Tag
384
- * @param {string[]} tags name to add
385
- * @return {Promise<Tag>} response about tags added.
386
- */
387
- public add_tags(document_id: string, tags: string[]): Promise<Tag>;
388
-
389
- /**
390
- * Replace multiple tags on an existing document
391
- *
392
- * @param {number} document_id ID of the document you'd like to add a Tag
393
- * @param {string[]} tags names to be added
394
- * @return {Promise<Tag>} response about tags added.
395
- */
396
- public replace_tags(document_id: string, tags: string[]): Promise<Tag>;
397
-
398
- /**
399
- * Process any document and extract all the fields from it
400
- * @example
401
- * veryfi_client.process_any_document('file/path','template_name')
402
- *
403
- * @memberof Client
404
- * @param {String} file_path Path on disk to a file to submit for data extraction
405
- * @param {String} template_name name of the extraction templates.
406
- * @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
407
- * @param {Object} kwargs Additional request parameters
408
- * @returns {JSON} Data extracted from the document
409
- */
410
- public process_any_document(
411
- file_path: string,
412
- template_name?: string,
413
- max_pages_to_process?: number,
414
- {...kwargs}?: VeryfiExtraArgs
415
- ): Promise<JsonObject>;
416
-
417
- /**
418
- * Process any document and extract all the fields from it
419
- * @example
420
- * veryfi_client.process_any_document_url('file_url','template_name')
421
- *
422
- * @memberof Client
423
- * @param {String} file_url url file to submit for data extraction
424
- * @param {String} template_name name of the extraction templates.
425
- * @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
426
- * @param {Object} kwargs Additional request parameters
427
- * @returns {JSON} Data extracted from the document
428
- */
429
- public process_any_document_url(
430
- file_url: string,
431
- template_name?: string,
432
- max_pages_to_process?: number,
433
- {...kwargs}?: VeryfiExtraArgs
434
- ): Promise<JsonObject>;
435
-
436
- /**
437
- * Get all any documents
438
- * @memberof Client
439
- * @param {number} page The page number. The response is capped to maximum of 50 results per page.
440
- * @param {number} page_size The number of Documents per page.
441
- * @returns {Promise<JsonObject>} Object of previously processed any documents
442
- */
443
- public get_any_documents(page?: number, page_size?: number): Promise<JsonObject[]>;
444
-
445
- /**
446
- * Get a specific any document
447
- * @memberof Client
448
- * @param {number} document_id The unique identifier of the document.
449
- * @returns {Promise<JsonObject>} Object of a previously processed blueprinted document.
450
- */
451
- public get_any_document(document_id: number): Promise<JsonObject[]>;
452
-
453
- /**
454
- * Get a specific bank statement
455
- * @memberof Client
456
- * @param {number} document_id The unique identifier of the document.
457
- * @param {boolean} bounding_boxes A field used to determine whether to return bounding_box and bounding_region for extracted fields in the Document response.
458
- * @param {boolean} confidence_details A field used to determine whether to return the score and ocr_score fields in the Document response.
459
- * @returns {Promise<JsonObject>} Object of a previously processed blueprinted document.
460
- */
461
- public get_bank_statement(document_id: number, bounding_boxes?: boolean,
462
- confidence_details?: boolean): Promise<JsonObject[]>;
463
-
464
- /**
465
- * Get all bank statements
466
- * @memberof Client
467
- * @param {number} page The page number. The response is capped to maximum of 50 results per page.
468
- * @param {number} page_size The number of Documents per page.
469
- * @param {boolean} bounding_boxes A field used to determine whether to return bounding_box and bounding_region for extracted fields in the Document response.
470
- * @param {boolean} confidence_details A field used to determine whether to return the score and ocr_score fields in the Document response.
471
- * @returns {Promise<JsonObject>} Object of previously processed any documents
472
- */
473
- public get_bank_statements(
474
- page?: number,
475
- page_size?: number,
476
- bounding_boxes?: boolean,
477
- confidence_details?: boolean
478
- ): Promise<JsonObject[]>;
479
-
480
- /**
481
- * Process bank statement and extract all the fields from it
482
- * @example
483
- * veryfi_client.process_bank_statement('file/path')
484
- *
485
- * @memberof Client
486
- * @param {String} file_path Path on disk to a file to submit for data extraction
487
- * @param {boolean} bounding_boxes A field used to determine whether to return bounding_box and bounding_region for extracted fields in the Document response.
488
- * @param {boolean} confidence_details A field used to determine whether to return the score and ocr_score fields in the Document response.
489
- * @param {Object} kwargs Additional request parameters
490
- * @returns {JSON} Data extracted from the document
491
- */
492
- public process_bank_statement(
493
- file_path: string,
494
- bounding_boxes?: boolean,
495
- confidence_details?: boolean,
496
- {...kwargs}?: VeryfiExtraArgs
497
- ): Promise<JsonObject>;
498
-
499
- /**
500
- * Process any document and extract all the fields from it
501
- * @example
502
- * veryfi_client.process_bank_statement_url('file_url')
503
- *
504
- * @memberof Client
505
- * @param {String} file_url url file to submit for data extraction
506
- * @param {boolean} bounding_boxes A field used to determine whether to return bounding_box and bounding_region for extracted fields in the Document response.
507
- * @param {boolean} confidence_details A field used to determine whether to return the score and ocr_score fields in the Document response.
508
- * @param {Object} kwargs Additional request parameters
509
- * @returns {JSON} Data extracted from the document
510
- */
511
- public process_bank_statement_url(
512
- file_url: string,
513
- bounding_boxes?: boolean,
514
- confidence_details?: boolean,
515
- {...kwargs}?: VeryfiExtraArgs
516
- ): Promise<JsonObject>;
517
-
518
- }
519
-
520
- /**
521
- * Create instance of a Client
522
- * @class
523
- * @param {string} client_id Your Veryfi client id
524
- * @param {string | undefined} client_secret Your Veryfi client secret
525
- * @param {string} username Your Veryfi username
526
- * @param {string} api_key Your Veryfi API key
527
- * @param {string} base_url
528
- * @param {string} api_version
529
- * @param {number} timeout
530
- */
531
- export declare function Client(
532
- client_id: string,
533
- client_secret: string | undefined,
534
- username: string,
535
- api_key: string,
536
- base_url?: string,
537
- api_version?: string,
538
- timeout?: number
539
- ): Client;
540
-
541
- export default Client;