anyline-ocr-react-native-module 55.9.0 → 56.0.2

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.
@@ -0,0 +1,1757 @@
1
+ /**
2
+ * Top-level schema encompassing all request and response types exchanged between the
3
+ * wrapper plugin and the Anyline SDK during a scanning session.
4
+ */
5
+ export interface WrapperSessionParameters {
6
+ exportCachedEventsResponse?: WrapperSessionExportCachedEventsResponse;
7
+ scanResponse?: WrapperSessionScanResponse;
8
+ scanResultsResponse?: WrapperSessionScanResultsResponse;
9
+ scanStartRequest?: WrapperSessionScanStartRequest;
10
+ scanStopRequest?: WrapperSessionScanStopRequest;
11
+ scanViewConfigOptions?: WrapperSessionScanViewConfigOptions;
12
+ sdkInitializationRequest?: WrapperSessionSdkInitializationRequest;
13
+ sdkInitializationResponse?: WrapperSessionSdkInitializationResponse;
14
+ ucrReportRequest?: WrapperSessionUcrReportRequest;
15
+ ucrReportResponse?: WrapperSessionUcrReportResponse;
16
+ [property: string]: any;
17
+ }
18
+
19
+ /**
20
+ * Response from cached events export operation. Includes either failInfo (if export failed)
21
+ * or succeedInfo (if successful), corresponding to the status field.
22
+ */
23
+ export interface WrapperSessionExportCachedEventsResponse {
24
+ /**
25
+ * Populated when status is exportFailed. Contains the error that caused the failure.
26
+ */
27
+ failInfo?: WrapperSessionExportCachedEventsResponseFail;
28
+ /**
29
+ * The final status of the export operation.
30
+ */
31
+ status?: WrapperSessionExportCachedEventsResponseStatus;
32
+ /**
33
+ * Populated when status is exportSucceeded. Contains the path to the exported file.
34
+ */
35
+ succeedInfo?: WrapperSessionExportCachedEventsResponseSucceed;
36
+ [property: string]: any;
37
+ }
38
+
39
+ /**
40
+ * Populated when status is exportFailed. Contains the error that caused the failure.
41
+ *
42
+ * Details about a failed cached events export.
43
+ */
44
+ export interface WrapperSessionExportCachedEventsResponseFail {
45
+ /**
46
+ * The last error received while exporting cached events.
47
+ */
48
+ lastError?: string;
49
+ [property: string]: any;
50
+ }
51
+
52
+ /**
53
+ * The final status of the export operation.
54
+ *
55
+ * Final status of a cached events export operation.
56
+ */
57
+ export enum WrapperSessionExportCachedEventsResponseStatus {
58
+ ExportFailed = "exportFailed",
59
+ ExportSucceeded = "exportSucceeded",
60
+ }
61
+
62
+ /**
63
+ * Populated when status is exportSucceeded. Contains the path to the exported file.
64
+ *
65
+ * Details about a successful cached events export.
66
+ */
67
+ export interface WrapperSessionExportCachedEventsResponseSucceed {
68
+ /**
69
+ * Path to the generated file containing the exported cached events.
70
+ */
71
+ exportedFile?: string;
72
+ [property: string]: any;
73
+ }
74
+
75
+ /**
76
+ * Response indicating scan session completion status. Includes exactly one info object
77
+ * (failInfo, abortInfo, or succeedInfo) corresponding to the status field value.
78
+ */
79
+ export interface WrapperSessionScanResponse {
80
+ /**
81
+ * Populated when status is scanAborted. Contains the reason for the abort.
82
+ */
83
+ abortInfo?: WrapperSessionScanResponseAbort;
84
+ /**
85
+ * Populated when status is scanFailed. Contains the error that caused the failure.
86
+ */
87
+ failInfo?: WrapperSessionScanResponseFail;
88
+ /**
89
+ * The result configuration that was active during the completed scan session.
90
+ */
91
+ scanResultConfig?: WrapperSessionScanResultConfig;
92
+ /**
93
+ * The final status of the scan session.
94
+ */
95
+ status?: WrapperSessionScanResponseStatus;
96
+ /**
97
+ * Populated when status is scanSucceeded. Contains an optional completion message.
98
+ */
99
+ succeedInfo?: WrapperSessionScanResponseSucceed;
100
+ [property: string]: any;
101
+ }
102
+
103
+ /**
104
+ * Populated when status is scanAborted. Contains the reason for the abort.
105
+ *
106
+ * Details about an aborted scan session.
107
+ */
108
+ export interface WrapperSessionScanResponseAbort {
109
+ /**
110
+ * Optional message provided when the scan session was aborted.
111
+ */
112
+ message?: string;
113
+ [property: string]: any;
114
+ }
115
+
116
+ /**
117
+ * Populated when status is scanFailed. Contains the error that caused the failure.
118
+ *
119
+ * Details about a failed scan session.
120
+ */
121
+ export interface WrapperSessionScanResponseFail {
122
+ /**
123
+ * The last error received while trying to scan.
124
+ */
125
+ lastError?: string;
126
+ [property: string]: any;
127
+ }
128
+
129
+ /**
130
+ * The result configuration that was active during the completed scan session.
131
+ *
132
+ * Configuration for how scan results are returned and stored during a scanning session.
133
+ *
134
+ * The result configuration that was active when these results were produced.
135
+ *
136
+ * Configuration for how scan results are returned and stored during the session.
137
+ */
138
+ export interface WrapperSessionScanResultConfig {
139
+ /**
140
+ * Deprecated. Used only by the legacy plugin. Custom callback method names for scan result
141
+ * and UI element click events.
142
+ */
143
+ callbackConfig?: WrapperSessionScanResultCallbackConfig;
144
+ /**
145
+ * Controls when previously generated result files are removed from storage.
146
+ */
147
+ cleanStrategy?: WrapperSessionScanResultCleanStrategyConfig;
148
+ /**
149
+ * Specifies how scan result images are delivered — either saved to a file path or encoded
150
+ * as base64 strings.
151
+ */
152
+ imageContainer?: ExportedScanResultImageContainer;
153
+ /**
154
+ * Output format and quality settings for scan result images.
155
+ */
156
+ imageParameters?: ExportedScanResultImageParameters;
157
+ [property: string]: any;
158
+ }
159
+
160
+ /**
161
+ * Deprecated. Used only by the legacy plugin. Custom callback method names for scan result
162
+ * and UI element click events.
163
+ *
164
+ * Deprecated. Used only by the legacy plugin. Configuration for callback method names
165
+ * invoked during scanning events.
166
+ */
167
+ export interface WrapperSessionScanResultCallbackConfig {
168
+ /**
169
+ * Name of the callback method to invoke when scan results are available. Method will
170
+ * receive a list of ExportedScanResult as parameter.
171
+ */
172
+ onResultEventName?: string;
173
+ /**
174
+ * Name of the callback method to invoke when user taps a UI feedback element during
175
+ * scanning. Method receives a UIFeedbackElementConfig as parameter.
176
+ */
177
+ onUIElementClickedEventName?: string;
178
+ [property: string]: any;
179
+ }
180
+
181
+ /**
182
+ * Controls when previously generated result files are removed from storage.
183
+ */
184
+ export enum WrapperSessionScanResultCleanStrategyConfig {
185
+ CleanFolderOnStartScanning = "cleanFolderOnStartScanning",
186
+ DeleteResultFilesOnFinishScanning = "deleteResultFilesOnFinishScanning",
187
+ KeepResultFiles = "keepResultFiles",
188
+ }
189
+
190
+ /**
191
+ * Specifies how scan result images are delivered — either saved to a file path or encoded
192
+ * as base64 strings.
193
+ *
194
+ * Specifies how and where the scan result images are delivered.
195
+ *
196
+ * Specifies how and where scan result images are delivered. Use saved to store images to
197
+ * disk, or encoded to receive them as base64 strings in the result.
198
+ */
199
+ export interface ExportedScanResultImageContainer {
200
+ /**
201
+ * Deliver images as base64-encoded strings embedded in the result JSON.
202
+ */
203
+ encoded?: ExportedScanResultImageContainerEncoded;
204
+ /**
205
+ * Deliver images as files saved to the specified directory path.
206
+ */
207
+ saved?: ExportedScanResultImageContainerSaved;
208
+ [property: string]: any;
209
+ }
210
+
211
+ /**
212
+ * Deliver images as base64-encoded strings embedded in the result JSON.
213
+ *
214
+ * Image container that encodes scan result images as base64 strings in the result JSON.
215
+ */
216
+ export interface ExportedScanResultImageContainerEncoded {
217
+ /**
218
+ * The base64-encoded image data for each image type.
219
+ */
220
+ images?: ExportedScanResultImages;
221
+ [property: string]: any;
222
+ }
223
+
224
+ /**
225
+ * The base64-encoded image data for each image type.
226
+ *
227
+ * References to the images captured during scanning. Each field is a file path (saved
228
+ * container) or base64 string (encoded container). Fields are only populated for image
229
+ * types the active plugin produces.
230
+ *
231
+ * The image filenames saved in the specified path.
232
+ */
233
+ export interface ExportedScanResultImages {
234
+ /**
235
+ * The cropped cutout image corresponding to the scanned region.
236
+ */
237
+ cutoutImage?: string;
238
+ /**
239
+ * The face image extracted from the scanned document, if available.
240
+ */
241
+ faceImage?: string;
242
+ /**
243
+ * The full frame image captured at the moment of the scan result.
244
+ */
245
+ image?: string;
246
+ [property: string]: any;
247
+ }
248
+
249
+ /**
250
+ * Deliver images as files saved to the specified directory path.
251
+ *
252
+ * Image container that saves scan result images to a local file path.
253
+ */
254
+ export interface ExportedScanResultImageContainerSaved {
255
+ /**
256
+ * The image filenames saved in the specified path.
257
+ */
258
+ images?: ExportedScanResultImages;
259
+ /**
260
+ * Directory path where scan result images are saved.
261
+ */
262
+ path?: string;
263
+ [property: string]: any;
264
+ }
265
+
266
+ /**
267
+ * Output format and quality settings for scan result images.
268
+ *
269
+ * Output format and quality settings applied to all images exported with this scan result.
270
+ */
271
+ export interface ExportedScanResultImageParameters {
272
+ /**
273
+ * Image format used when exporting scan result images.
274
+ */
275
+ format?: ExportedScanResultImageFormat;
276
+ /**
277
+ * Compression quality for exported images, from 1 (lowest) to 100 (highest).
278
+ */
279
+ quality?: number;
280
+ [property: string]: any;
281
+ }
282
+
283
+ /**
284
+ * Image format used when exporting scan result images.
285
+ */
286
+ export enum ExportedScanResultImageFormat {
287
+ Jpg = "jpg",
288
+ Png = "png",
289
+ }
290
+
291
+ /**
292
+ * The final status of the scan session.
293
+ *
294
+ * Final status of a scan session.
295
+ */
296
+ export enum WrapperSessionScanResponseStatus {
297
+ ScanAborted = "scanAborted",
298
+ ScanFailed = "scanFailed",
299
+ ScanSucceeded = "scanSucceeded",
300
+ }
301
+
302
+ /**
303
+ * Populated when status is scanSucceeded. Contains an optional completion message.
304
+ *
305
+ * Details about a successfully completed scan session.
306
+ */
307
+ export interface WrapperSessionScanResponseSucceed {
308
+ /**
309
+ * Optional informational message from the completed scan session.
310
+ */
311
+ message?: string;
312
+ [property: string]: any;
313
+ }
314
+
315
+ /**
316
+ * Information about the results collected during the scanning process.
317
+ */
318
+ export interface WrapperSessionScanResultsResponse {
319
+ /**
320
+ * List of scan results produced in this scanning event, one per detected item.
321
+ */
322
+ exportedScanResults?: ExportedScanResult[];
323
+ /**
324
+ * The result configuration that was active when these results were produced.
325
+ */
326
+ scanResultConfig?: WrapperSessionScanResultConfig;
327
+ /**
328
+ * Additional metadata about the source plugin that produced these results.
329
+ */
330
+ scanResultExtraInfo?: WrapperSessionScanResultExtraInfo;
331
+ [property: string]: any;
332
+ }
333
+
334
+ /**
335
+ * A single scan result exported from the Anyline SDK, containing the plugin-specific result
336
+ * data together with the associated scan images.
337
+ */
338
+ export interface ExportedScanResult {
339
+ /**
340
+ * Specifies how and where the scan result images are delivered.
341
+ */
342
+ imageContainer?: ExportedScanResultImageContainer;
343
+ /**
344
+ * Output format and quality settings applied to all images exported with this scan result.
345
+ */
346
+ imageParameters?: ExportedScanResultImageParameters;
347
+ /**
348
+ * The plugin-specific scan result produced by the Anyline SDK.
349
+ */
350
+ pluginResult?: PluginResult;
351
+ [property: string]: any;
352
+ }
353
+
354
+ /**
355
+ * The plugin-specific scan result produced by the Anyline SDK.
356
+ *
357
+ * Describes all kinds of scan results
358
+ */
359
+ export interface PluginResult {
360
+ barcodeResult?: BarcodeResult;
361
+ /**
362
+ * The blobKey (provided optionally, depending on the Anyline license settings)
363
+ */
364
+ blobKey?: string;
365
+ commercialTireIdResult?: CommercialTireIdResult;
366
+ /**
367
+ * Provides a general confidence value between 0 and 100 if applicable. -1 if no confidence
368
+ * was calculated
369
+ */
370
+ confidence?: number;
371
+ containerResult?: ContainerResult;
372
+ /**
373
+ * The rect information of the region that was processed within the image
374
+ */
375
+ cropRect?: CropRect;
376
+ japaneseLandingPermissionResult?: JapaneseLandingPermissionResult;
377
+ licensePlateResult?: LicensePlateResult;
378
+ meterResult?: MeterResult;
379
+ mrzResult?: MrzResult;
380
+ ocrResult?: OcrResult;
381
+ odometerResult?: OdometerResult;
382
+ /**
383
+ * representing time measurements for different parts of the process.
384
+ */
385
+ performanceMetrics?: PerformanceMetrics;
386
+ /**
387
+ * The ID of the ScanPlugin that processed the result
388
+ */
389
+ pluginID?: string;
390
+ tinResult?: TinResult;
391
+ tireMakeResult?: TireMakeResult;
392
+ tireSizeResult?: TireSizeResult;
393
+ /**
394
+ * A unique UUIDv4 generated for each scan controller process run.
395
+ */
396
+ transactionId?: string;
397
+ universalIdResult?: UniversalIdResult;
398
+ vehicleRegistrationCertificateResult?: VehicleRegistrationCertificateResult;
399
+ vinResult?: VinResult;
400
+ }
401
+
402
+ /**
403
+ * Describes result information of scanning barcodes
404
+ */
405
+ export interface BarcodeResult {
406
+ /**
407
+ * Contains a list of one or more barcodes found on the processed image
408
+ */
409
+ barcodes?: Barcode[];
410
+ }
411
+
412
+ /**
413
+ * Describes barcode information
414
+ */
415
+ export interface Barcode {
416
+ aamva?: Aamva;
417
+ /**
418
+ * Contains the base64-encoded value
419
+ */
420
+ base64value?: string;
421
+ /**
422
+ * Corner points of a polygon surrounding the discovered barcode, starting from the
423
+ * bottom-left coordinate going counter-clockwise. The coordinates are in reference to the
424
+ * image of the plugin result.
425
+ */
426
+ coordinates?: number[];
427
+ /**
428
+ * The barcode format
429
+ */
430
+ format?: string;
431
+ /**
432
+ * The value of the barcode
433
+ */
434
+ value?: string;
435
+ }
436
+
437
+ /**
438
+ * Holds all encoded barcode information according to the AAMVA standard
439
+ */
440
+ export interface Aamva {
441
+ AAMVA_version?: number;
442
+ "body-part"?: BodyPart;
443
+ [property: string]: any;
444
+ }
445
+
446
+ export interface BodyPart {
447
+ auditInformation?: string;
448
+ cardRevisionDate?: string;
449
+ city?: string;
450
+ complianceType?: string;
451
+ countryID?: string;
452
+ customerIDNumber?: string;
453
+ dateOfBirth?: string;
454
+ dateOfExpiry?: string;
455
+ dateOfIssue?: string;
456
+ documentDiscriminator?: string;
457
+ drivingPrivilege?: string;
458
+ endorsementCode?: string;
459
+ eyes?: string;
460
+ firstName?: string;
461
+ firstNameTruncated?: string;
462
+ hair?: string;
463
+ height?: string;
464
+ inventoryControlNumber?: string;
465
+ jurisdictionCode?: string;
466
+ lastName?: string;
467
+ lastNameTruncated?: string;
468
+ licenseClass?: string;
469
+ middleName?: string;
470
+ middleNameTruncated?: string;
471
+ postalCode?: string;
472
+ sex?: string;
473
+ street?: string;
474
+ [property: string]: any;
475
+ }
476
+
477
+ /**
478
+ * Describes result information of scanning commercial tire IDs
479
+ */
480
+ export interface CommercialTireIdResult {
481
+ /**
482
+ * The text value of the commercial tire ID
483
+ */
484
+ text?: string;
485
+ }
486
+
487
+ /**
488
+ * Describes result information of scanning shipping containers
489
+ */
490
+ export interface ContainerResult {
491
+ /**
492
+ * The text value of the shipping container
493
+ */
494
+ text?: string;
495
+ }
496
+
497
+ /**
498
+ * The rect information of the region that was processed within the image
499
+ */
500
+ export interface CropRect {
501
+ /**
502
+ * The height
503
+ */
504
+ height?: number;
505
+ /**
506
+ * The width
507
+ */
508
+ width?: number;
509
+ /**
510
+ * The X value
511
+ */
512
+ x?: number;
513
+ /**
514
+ * The Y value
515
+ */
516
+ y?: number;
517
+ }
518
+
519
+ /**
520
+ * Describes result information of scanning japanese landing permission tickets
521
+ */
522
+ export interface JapaneseLandingPermissionResult {
523
+ /**
524
+ * Yields field information of a japanese landing permission ticket
525
+ */
526
+ result?: JlpResult;
527
+ }
528
+
529
+ /**
530
+ * Yields field information of a japanese landing permission ticket
531
+ */
532
+ export interface JlpResult {
533
+ airport?: JapaneseLandingPermissionResultField;
534
+ dateOfExpiry?: JapaneseLandingPermissionResultField;
535
+ dateOfIssue?: JapaneseLandingPermissionResultField;
536
+ duration?: JapaneseLandingPermissionResultField;
537
+ status?: JapaneseLandingPermissionResultField;
538
+ }
539
+
540
+ /**
541
+ * Provides result information for japanese landing permission fields
542
+ */
543
+ export interface JapaneseLandingPermissionResultField {
544
+ /**
545
+ * The confidence information of the field
546
+ */
547
+ confidence?: number;
548
+ /**
549
+ * The text information of the field
550
+ */
551
+ text?: string;
552
+ }
553
+
554
+ /**
555
+ * Describes result information of scanning license plates
556
+ */
557
+ export interface LicensePlateResult {
558
+ /**
559
+ * The area information
560
+ */
561
+ area?: Area;
562
+ /**
563
+ * The country information
564
+ */
565
+ country?: string;
566
+ /**
567
+ * The plate text
568
+ */
569
+ plateText?: string;
570
+ /**
571
+ * (Optional) If vehicleInspectionSticker config is OPTIONAL, this is true if a Visual
572
+ * Inspection Sticker was found, false otherwise. If the config is MANDATORY, this field is
573
+ * always true.
574
+ */
575
+ vehicleInspectionFound?: boolean;
576
+ /**
577
+ * (Optional) The month depicted on the Visual Inspection Sticker.
578
+ */
579
+ vehicleInspectionMonth?: string;
580
+ /**
581
+ * (Optional) This is true, if the Visual Inspection Sticker depicts a date in the future.
582
+ */
583
+ vehicleInspectionValid?: boolean;
584
+ /**
585
+ * (Optional) The year depicted on the Visual Inspection Sticker.
586
+ */
587
+ vehicleInspectionYear?: string;
588
+ }
589
+
590
+ /**
591
+ * The area information
592
+ */
593
+ export enum Area {
594
+ Alabama = "Alabama",
595
+ Alaska = "Alaska",
596
+ Alberta = "Alberta",
597
+ AmericanSamoa = "American Samoa",
598
+ Arizona = "Arizona",
599
+ Arkansas = "Arkansas",
600
+ BritishColumbia = "British Columbia",
601
+ California = "California",
602
+ Colorado = "Colorado",
603
+ Connecticut = "Connecticut",
604
+ Delaware = "Delaware",
605
+ DistrictOfColumbia = "District of Columbia",
606
+ Florida = "Florida",
607
+ Georgia = "Georgia",
608
+ Guam = "Guam",
609
+ Hawaii = "Hawaii",
610
+ Idaho = "Idaho",
611
+ Illinois = "Illinois",
612
+ Indiana = "Indiana",
613
+ Iowa = "Iowa",
614
+ Kansas = "Kansas",
615
+ Kentucky = "Kentucky",
616
+ Louisiana = "Louisiana",
617
+ Maine = "Maine",
618
+ Manitoba = "Manitoba",
619
+ Maryland = "Maryland",
620
+ Massachusetts = "Massachusetts",
621
+ Michigan = "Michigan",
622
+ Minnesota = "Minnesota",
623
+ Mississippi = "Mississippi",
624
+ Missouri = "Missouri",
625
+ Montana = "Montana",
626
+ Nebraska = "Nebraska",
627
+ Nevada = "Nevada",
628
+ NewBrunswick = "New Brunswick",
629
+ NewHampshire = "New Hampshire",
630
+ NewJersey = "New Jersey",
631
+ NewMexico = "New Mexico",
632
+ NewYork = "New York",
633
+ NorthCarolina = "North Carolina",
634
+ NorthDakota = "North Dakota",
635
+ NovaScotia = "Nova Scotia",
636
+ Ohio = "Ohio",
637
+ Oklahoma = "Oklahoma",
638
+ Ontario = "Ontario",
639
+ Oregon = "Oregon",
640
+ Pennsylvania = "Pennsylvania",
641
+ PuertoRico = "Puerto Rico",
642
+ Quebec = "Quebec",
643
+ RhodeIsland = "Rhode Island",
644
+ Saskatchewan = "Saskatchewan",
645
+ SouthCarolina = "South Carolina",
646
+ SouthDakota = "South Dakota",
647
+ Tennessee = "Tennessee",
648
+ Texas = "Texas",
649
+ Utah = "Utah",
650
+ Vermont = "Vermont",
651
+ Virginia = "Virginia",
652
+ Washington = "Washington",
653
+ WestVirginia = "West Virginia",
654
+ Wisconsin = "Wisconsin",
655
+ Wyoming = "Wyoming",
656
+ }
657
+
658
+ /**
659
+ * Describes result information of scanning meters
660
+ */
661
+ export interface MeterResult {
662
+ /**
663
+ * The position. Only applicable for OBIS meters - see https://onemeter.com/docs/device/obis/
664
+ */
665
+ position?: string;
666
+ /**
667
+ * The unit value. Only applicable for multi-field meter scanning.
668
+ */
669
+ unit?: string;
670
+ /**
671
+ * The meter value.
672
+ */
673
+ value?: string;
674
+ }
675
+
676
+ /**
677
+ * Describes result information of scanning MRZ
678
+ */
679
+ export interface MrzResult {
680
+ /**
681
+ * True if all check digits are valid
682
+ */
683
+ allCheckDigitsValid?: boolean;
684
+ /**
685
+ * The CheckDigitDateOfBirth
686
+ */
687
+ checkDigitDateOfBirth?: string;
688
+ /**
689
+ * The CheckDigitDateOfExpiry
690
+ */
691
+ checkDigitDateOfExpiry?: string;
692
+ /**
693
+ * The CheckDigitDocumentNumber
694
+ */
695
+ checkDigitDocumentNumber?: string;
696
+ /**
697
+ * The CheckDigitFinal
698
+ */
699
+ checkDigitFinal?: string;
700
+ /**
701
+ * The CheckDigitPersonalNumber
702
+ */
703
+ checkDigitPersonalNumber?: string;
704
+ /**
705
+ * The DateOfBirth
706
+ */
707
+ dateOfBirth?: string;
708
+ /**
709
+ * The DateOfBirthObject
710
+ */
711
+ dateOfBirthObject?: string;
712
+ /**
713
+ * The DateOfExpiry
714
+ */
715
+ dateOfExpiry?: string;
716
+ /**
717
+ * The DateOfExpiryObject
718
+ */
719
+ dateOfExpiryObject?: string;
720
+ /**
721
+ * The DocumentNumber
722
+ */
723
+ documentNumber?: string;
724
+ /**
725
+ * The DocumentType
726
+ */
727
+ documentType?: string;
728
+ /**
729
+ * The confidence values of each field
730
+ */
731
+ fieldConfidences?: FieldConfidences;
732
+ /**
733
+ * The FirstName
734
+ */
735
+ firstName?: string;
736
+ /**
737
+ * The GivenNames
738
+ */
739
+ givenNames?: string;
740
+ /**
741
+ * The IssuingCountryCode
742
+ */
743
+ issuingCountryCode?: string;
744
+ /**
745
+ * The LastName
746
+ */
747
+ lastName?: string;
748
+ /**
749
+ * The MRZString
750
+ */
751
+ mrzString?: string;
752
+ /**
753
+ * The NationalityCountryCode
754
+ */
755
+ nationalityCountryCode?: string;
756
+ /**
757
+ * The OptionalData
758
+ */
759
+ optionalData?: string;
760
+ /**
761
+ * The PersonalNumber
762
+ */
763
+ personalNumber?: string;
764
+ /**
765
+ * The Sex
766
+ */
767
+ sex?: string;
768
+ /**
769
+ * The Surname
770
+ */
771
+ surname?: string;
772
+ /**
773
+ * The Adress of the Visual Inspection Zone
774
+ */
775
+ vizAddress?: string;
776
+ /**
777
+ * The DateOfBirth of the Visual Inspection Zone
778
+ */
779
+ vizDateOfBirth?: string;
780
+ /**
781
+ * The DateOfBirthObject of the Visual Inspection Zone
782
+ */
783
+ vizDateOfBirthObject?: string;
784
+ /**
785
+ * The DateOfExpiry of the Visual Inspection Zone
786
+ */
787
+ vizDateOfExpiry?: string;
788
+ /**
789
+ * The DateOfExpiryObject of the Visual Inspection Zone
790
+ */
791
+ vizDateOfExpiryObject?: string;
792
+ /**
793
+ * The DateOfIssue of the Visual Inspection Zone
794
+ */
795
+ vizDateOfIssue?: string;
796
+ /**
797
+ * The DateOfIssueObject of the Visual Inspection Zone
798
+ */
799
+ vizDateOfIssueObject?: string;
800
+ /**
801
+ * The GivenNames of the Visual Inspection Zone
802
+ */
803
+ vizGivenNames?: string;
804
+ /**
805
+ * The Surname of the Visual Inspection Zone
806
+ */
807
+ vizSurname?: string;
808
+ }
809
+
810
+ /**
811
+ * The confidence values of each field
812
+ */
813
+ export interface FieldConfidences {
814
+ checkDigitDateOfBirth?: number;
815
+ checkDigitDateOfExpiry?: number;
816
+ checkDigitDocumentNumber?: number;
817
+ checkDigitFinal?: number;
818
+ checkDigitPersonalNumber?: number;
819
+ dateOfBirth?: number;
820
+ dateOfExpiry?: number;
821
+ documentNumber?: number;
822
+ documentType?: number;
823
+ givenNames?: number;
824
+ issuingCountryCode?: number;
825
+ mrzString?: number;
826
+ nationalityCountryCode?: number;
827
+ optionalData?: number;
828
+ personalNumber?: number;
829
+ sex?: number;
830
+ surname?: number;
831
+ vizAddress?: number;
832
+ vizDateOfBirth?: number;
833
+ vizDateOfExpiry?: number;
834
+ vizDateOfIssue?: number;
835
+ vizGivenNames?: number;
836
+ vizSurname?: number;
837
+ }
838
+
839
+ /**
840
+ * Describes result information of scanning general OCR
841
+ */
842
+ export interface OcrResult {
843
+ /**
844
+ * The OCR text value.
845
+ */
846
+ text?: string;
847
+ }
848
+
849
+ /**
850
+ * Describes result information of scanning odometers
851
+ */
852
+ export interface OdometerResult {
853
+ /**
854
+ * The odometer value.
855
+ */
856
+ value?: string;
857
+ }
858
+
859
+ /**
860
+ * representing time measurements for different parts of the process.
861
+ */
862
+ export interface PerformanceMetrics {
863
+ /**
864
+ * The total duration of the scan controller process, in milliseconds
865
+ */
866
+ scanControllerProcessInMs?: number;
867
+ [property: string]: any;
868
+ }
869
+
870
+ /**
871
+ * Describes result information of scanning tire identification numbers (TIN)
872
+ */
873
+ export interface TinResult {
874
+ /**
875
+ * The production date on the TIN reformatted to YYYY/MM.
876
+ */
877
+ productionDate?: string;
878
+ /**
879
+ * The TIN text split by context with spaces as delimiter.
880
+ */
881
+ resultPrettified?: string;
882
+ /**
883
+ * The TIN text value.
884
+ */
885
+ text?: string;
886
+ /**
887
+ * The computed tire age in years rounded down.
888
+ */
889
+ tireAgeInYearsRoundedDown?: number;
890
+ }
891
+
892
+ /**
893
+ * Describes result information of scanning tire makes
894
+ */
895
+ export interface TireMakeResult {
896
+ /**
897
+ * The text value of the tire make
898
+ */
899
+ text?: string;
900
+ }
901
+
902
+ /**
903
+ * Describes result information of scanning tire size specifications
904
+ */
905
+ export interface TireSizeResult {
906
+ commercialTire?: TireSizeResultField;
907
+ construction?: TireSizeResultField;
908
+ diameter?: TireSizeResultField;
909
+ extraLoad?: TireSizeResultField;
910
+ loadIndex?: TireSizeResultField;
911
+ prettifiedString?: TireSizeResultField;
912
+ prettifiedStringWithMeta?: TireSizeResultField;
913
+ ratio?: TireSizeResultField;
914
+ speedRating?: TireSizeResultField;
915
+ text?: TireSizeResultField;
916
+ vehicleType?: TireSizeResultField;
917
+ width?: TireSizeResultField;
918
+ winter?: TireSizeResultField;
919
+ }
920
+
921
+ export interface TireSizeResultField {
922
+ /**
923
+ * The confidence value of the tire size field.
924
+ */
925
+ confidence?: number;
926
+ /**
927
+ * The text value of the tire size field.
928
+ */
929
+ text?: string;
930
+ [property: string]: any;
931
+ }
932
+
933
+ /**
934
+ * Describes result information of scanning different kinds of IDs
935
+ */
936
+ export interface UniversalIdResult {
937
+ /**
938
+ * Yields field information of the ID
939
+ */
940
+ result?: IdResult;
941
+ visualization?: Visualization;
942
+ }
943
+
944
+ /**
945
+ * Yields field information of the ID
946
+ */
947
+ export interface IdResult {
948
+ additionalInformation?: UniversalIdResultField;
949
+ additionalInformation1?: UniversalIdResultField;
950
+ additionalInformation2?: UniversalIdResultField;
951
+ additionalInformation3?: UniversalIdResultField;
952
+ address?: UniversalIdResultField;
953
+ age?: UniversalIdResultField;
954
+ airport?: UniversalIdResultField;
955
+ allCheckDigitsValid?: UniversalIdResultField;
956
+ audit?: UniversalIdResultField;
957
+ authority?: UniversalIdResultField;
958
+ barcode?: UniversalIdResultField;
959
+ bloodType?: UniversalIdResultField;
960
+ cardAccessNumber?: UniversalIdResultField;
961
+ checkDigitDateOfBirth?: UniversalIdResultField;
962
+ checkDigitDateOfExpiry?: UniversalIdResultField;
963
+ checkDigitDocumentNumber?: UniversalIdResultField;
964
+ checkDigitFinal?: UniversalIdResultField;
965
+ checkDigitPersonalNumber?: UniversalIdResultField;
966
+ cityNumber?: UniversalIdResultField;
967
+ conditions?: UniversalIdResultField;
968
+ country?: UniversalIdResultField;
969
+ dateOfBirth?: UniversalIdResultField;
970
+ dateOfBirthObject?: UniversalIdResultField;
971
+ dateOfExpiry?: UniversalIdResultField;
972
+ dateOfExpiryObject?: UniversalIdResultField;
973
+ dateOfIssue?: UniversalIdResultField;
974
+ dateOfRegistration?: UniversalIdResultField;
975
+ degreeOfDisability?: UniversalIdResultField;
976
+ divisionNumber?: UniversalIdResultField;
977
+ documentCategoryDefinition?: UniversalIdResultField;
978
+ documentDiscriminator?: UniversalIdResultField;
979
+ documentNumber?: UniversalIdResultField;
980
+ documentRegionDefinition?: UniversalIdResultField;
981
+ documentSideDefinition?: UniversalIdResultField;
982
+ documentType?: UniversalIdResultField;
983
+ documentTypeDefinition?: UniversalIdResultField;
984
+ documentVersionsDefinition?: UniversalIdResultField;
985
+ duplicate?: UniversalIdResultField;
986
+ duration?: UniversalIdResultField;
987
+ educationalInstitution?: UniversalIdResultField;
988
+ employer?: UniversalIdResultField;
989
+ endorsements?: UniversalIdResultField;
990
+ eyes?: UniversalIdResultField;
991
+ face?: UniversalIdResultField;
992
+ familyNumber?: UniversalIdResultField;
993
+ familyRelation?: UniversalIdResultField;
994
+ fathersName?: UniversalIdResultField;
995
+ firstIssued?: UniversalIdResultField;
996
+ firstName?: UniversalIdResultField;
997
+ folio?: UniversalIdResultField;
998
+ formattedDateOfBirth?: UniversalIdResultField;
999
+ formattedDateOfExpiry?: UniversalIdResultField;
1000
+ formattedDateOfIssue?: UniversalIdResultField;
1001
+ fullName?: UniversalIdResultField;
1002
+ givenNames?: UniversalIdResultField;
1003
+ hair?: UniversalIdResultField;
1004
+ headOfFamily?: UniversalIdResultField;
1005
+ height?: UniversalIdResultField;
1006
+ hologram?: UniversalIdResultField;
1007
+ initials?: UniversalIdResultField;
1008
+ initialsAndDateOfBirth?: UniversalIdResultField;
1009
+ issuingCountryCode?: UniversalIdResultField;
1010
+ lastName?: UniversalIdResultField;
1011
+ licenseClass?: UniversalIdResultField;
1012
+ licenseType?: UniversalIdResultField;
1013
+ maidenName?: UniversalIdResultField;
1014
+ militaryRank?: UniversalIdResultField;
1015
+ mirrorNumber?: UniversalIdResultField;
1016
+ mothersName?: UniversalIdResultField;
1017
+ mrz?: UniversalIdResultField;
1018
+ mrzString?: UniversalIdResultField;
1019
+ municipalityNumber?: UniversalIdResultField;
1020
+ nationality?: UniversalIdResultField;
1021
+ nationalityCountryCode?: UniversalIdResultField;
1022
+ occupation?: UniversalIdResultField;
1023
+ office?: UniversalIdResultField;
1024
+ optionalData?: UniversalIdResultField;
1025
+ parentsFirstName?: UniversalIdResultField;
1026
+ parish?: UniversalIdResultField;
1027
+ personalNumber?: UniversalIdResultField;
1028
+ placeAndDateOfBirth?: UniversalIdResultField;
1029
+ placeOfBirth?: UniversalIdResultField;
1030
+ previousType?: UniversalIdResultField;
1031
+ pseudonym?: UniversalIdResultField;
1032
+ religion?: UniversalIdResultField;
1033
+ restrictions?: UniversalIdResultField;
1034
+ sex?: UniversalIdResultField;
1035
+ signature?: UniversalIdResultField;
1036
+ socialSecurityNumber?: UniversalIdResultField;
1037
+ state?: UniversalIdResultField;
1038
+ stateNumber?: UniversalIdResultField;
1039
+ status?: UniversalIdResultField;
1040
+ surname?: UniversalIdResultField;
1041
+ vizAddress?: UniversalIdResultField;
1042
+ vizDateOfBirth?: UniversalIdResultField;
1043
+ vizDateOfBirthObject?: UniversalIdResultField;
1044
+ vizDateOfExpiry?: UniversalIdResultField;
1045
+ vizDateOfExpiryObject?: UniversalIdResultField;
1046
+ vizDateOfIssue?: UniversalIdResultField;
1047
+ vizDateOfIssueObject?: UniversalIdResultField;
1048
+ vizGivenNames?: UniversalIdResultField;
1049
+ vizSurname?: UniversalIdResultField;
1050
+ voterId?: UniversalIdResultField;
1051
+ weight?: UniversalIdResultField;
1052
+ workPermitNumber?: UniversalIdResultField;
1053
+ }
1054
+
1055
+ /**
1056
+ * Describes scanned parameters of an ID field
1057
+ */
1058
+ export interface UniversalIdResultField {
1059
+ /**
1060
+ * Describes the date value of an ID field
1061
+ */
1062
+ dateValue?: DateValue;
1063
+ /**
1064
+ * Describes the text values of an ID field
1065
+ */
1066
+ textValues?: TextValues;
1067
+ }
1068
+
1069
+ /**
1070
+ * Describes the date value of an ID field
1071
+ */
1072
+ export interface DateValue {
1073
+ /**
1074
+ * The confidence value
1075
+ */
1076
+ confidence?: number;
1077
+ /**
1078
+ * The day
1079
+ */
1080
+ day?: number;
1081
+ /**
1082
+ * The formatted text value
1083
+ */
1084
+ formattedText?: string;
1085
+ /**
1086
+ * The month
1087
+ */
1088
+ month?: number;
1089
+ /**
1090
+ * The text value
1091
+ */
1092
+ text?: string;
1093
+ /**
1094
+ * The year
1095
+ */
1096
+ year?: number;
1097
+ }
1098
+
1099
+ /**
1100
+ * Describes the text values of an ID field
1101
+ */
1102
+ export interface TextValues {
1103
+ /**
1104
+ * The text parameters
1105
+ */
1106
+ arabic?: Arabic;
1107
+ /**
1108
+ * The text parameters
1109
+ */
1110
+ cyrillic?: Cyrillic;
1111
+ /**
1112
+ * The text parameters
1113
+ */
1114
+ latin?: Latin;
1115
+ }
1116
+
1117
+ /**
1118
+ * The text parameters
1119
+ */
1120
+ export interface Arabic {
1121
+ /**
1122
+ * The confidence value
1123
+ */
1124
+ confidence?: number;
1125
+ /**
1126
+ * The text value
1127
+ */
1128
+ text?: string;
1129
+ }
1130
+
1131
+ /**
1132
+ * The text parameters
1133
+ */
1134
+ export interface Cyrillic {
1135
+ /**
1136
+ * The confidence value
1137
+ */
1138
+ confidence?: number;
1139
+ /**
1140
+ * The text value
1141
+ */
1142
+ text?: string;
1143
+ }
1144
+
1145
+ /**
1146
+ * The text parameters
1147
+ */
1148
+ export interface Latin {
1149
+ /**
1150
+ * The confidence value
1151
+ */
1152
+ confidence?: number;
1153
+ /**
1154
+ * The text value
1155
+ */
1156
+ text?: string;
1157
+ }
1158
+
1159
+ /**
1160
+ * Information about the visualization data of the scanned ID
1161
+ */
1162
+ export interface Visualization {
1163
+ /**
1164
+ * The found contour points of the fields on the ID
1165
+ */
1166
+ contourPoints?: Array<Array<number[]>>;
1167
+ /**
1168
+ * The found contours of the fields on the ID
1169
+ */
1170
+ contours?: Array<number[]>;
1171
+ /**
1172
+ * The found bounding rect of the text fields on the ID
1173
+ */
1174
+ textRect?: number[];
1175
+ }
1176
+
1177
+ /**
1178
+ * Describes result information of scanning vehicle registration certificates
1179
+ */
1180
+ export interface VehicleRegistrationCertificateResult {
1181
+ /**
1182
+ * Yields field information of the vehicle registration certificate
1183
+ */
1184
+ result?: VrcResult;
1185
+ visualization?: Visualization;
1186
+ }
1187
+
1188
+ /**
1189
+ * Yields field information of the vehicle registration certificate
1190
+ */
1191
+ export interface VrcResult {
1192
+ address?: VehicleRegistrationCertificateResultField;
1193
+ brand?: VehicleRegistrationCertificateResultField;
1194
+ displacement?: VehicleRegistrationCertificateResultField;
1195
+ documentCategoryDefinition?: VehicleRegistrationCertificateResultField;
1196
+ documentNumber?: VehicleRegistrationCertificateResultField;
1197
+ documentRegionDefinition?: VehicleRegistrationCertificateResultField;
1198
+ documentSideDefinition?: VehicleRegistrationCertificateResultField;
1199
+ documentTypeDefinition?: VehicleRegistrationCertificateResultField;
1200
+ documentVersionsDefinition?: VehicleRegistrationCertificateResultField;
1201
+ firstIssued?: VehicleRegistrationCertificateResultField;
1202
+ firstName?: VehicleRegistrationCertificateResultField;
1203
+ formattedFirstIssued?: VehicleRegistrationCertificateResultField;
1204
+ lastName?: VehicleRegistrationCertificateResultField;
1205
+ licensePlate?: VehicleRegistrationCertificateResultField;
1206
+ manufacturerCode?: VehicleRegistrationCertificateResultField;
1207
+ tire?: VehicleRegistrationCertificateResultField;
1208
+ vehicleIdentificationNumber?: VehicleRegistrationCertificateResultField;
1209
+ vehicleType?: VehicleRegistrationCertificateResultField;
1210
+ vehicleTypeCode?: VehicleRegistrationCertificateResultField;
1211
+ }
1212
+
1213
+ /**
1214
+ * Describes scanned parameters of a vehicle registration certificate field
1215
+ */
1216
+ export interface VehicleRegistrationCertificateResultField {
1217
+ /**
1218
+ * The confidence value
1219
+ */
1220
+ confidence?: number;
1221
+ /**
1222
+ * The text value
1223
+ */
1224
+ text?: string;
1225
+ }
1226
+
1227
+ /**
1228
+ * Describes result information of scanning vehicle identification numbers (VIN)
1229
+ */
1230
+ export interface VinResult {
1231
+ /**
1232
+ * The VIN text value
1233
+ */
1234
+ text?: string;
1235
+ }
1236
+
1237
+ /**
1238
+ * Additional metadata about the source plugin that produced these results.
1239
+ *
1240
+ * Extra information returned by a scanning session.
1241
+ */
1242
+ export interface WrapperSessionScanResultExtraInfo {
1243
+ /**
1244
+ * The type of the source ViewPlugin that generated result(s).
1245
+ */
1246
+ viewPluginType?: ViewPluginType;
1247
+ [property: string]: any;
1248
+ }
1249
+
1250
+ /**
1251
+ * The type of the source ViewPlugin that generated result(s).
1252
+ */
1253
+ export enum ViewPluginType {
1254
+ ViewPlugin = "viewPlugin",
1255
+ ViewPluginComposite = "viewPluginComposite",
1256
+ }
1257
+
1258
+ /**
1259
+ * Request to start a scanning session. Requires both scanViewConfigContentString (defining
1260
+ * what to scan) and scanResultConfig (defining how to handle results). Optional
1261
+ * scanViewInitializationParameters for workflow correlation.
1262
+ */
1263
+ export interface WrapperSessionScanStartRequest {
1264
+ /**
1265
+ * Platform-specific options applied when starting a scan session.
1266
+ */
1267
+ platformOptions?: WrapperSessionScanStartPlatformOptions;
1268
+ /**
1269
+ * Configuration for how scan results are returned and stored during the session.
1270
+ */
1271
+ scanResultConfig?: WrapperSessionScanResultConfig;
1272
+ /**
1273
+ * ScanViewConfig JSON string defining the scanner configuration.
1274
+ */
1275
+ scanViewConfigContentString?: string;
1276
+ /**
1277
+ * Path relative to the assets folder used to resolve ScanViewConfig JSON files when a
1278
+ * SegmentControl references them by filename.
1279
+ */
1280
+ scanViewConfigPath?: string;
1281
+ /**
1282
+ * Optional initialization parameters applied when the ScanView is created.
1283
+ */
1284
+ scanViewInitializationParameters?: ScanViewInitializationParameters;
1285
+ [property: string]: any;
1286
+ }
1287
+
1288
+ /**
1289
+ * Platform-specific options applied when starting a scan session.
1290
+ */
1291
+ export interface WrapperSessionScanStartPlatformOptions {
1292
+ /**
1293
+ * Android-specific ScanView attributes for layout and behavior customization.
1294
+ */
1295
+ androidScanViewAttributes?: AndroidScanViewAttributesConfig;
1296
+ [property: string]: any;
1297
+ }
1298
+
1299
+ /**
1300
+ * Android-specific ScanView attributes for layout and behavior customization.
1301
+ *
1302
+ * Android ScanView attributes config
1303
+ */
1304
+ export interface AndroidScanViewAttributesConfig {
1305
+ /**
1306
+ * Enable or disable camera permission handling from ScanView loading process.
1307
+ */
1308
+ enableCameraPermissionHandling?: boolean;
1309
+ /**
1310
+ * Enable or disable usage of CameraX API instead of Camera1 API. Default is true.
1311
+ */
1312
+ useCameraX?: boolean;
1313
+ [property: string]: any;
1314
+ }
1315
+
1316
+ /**
1317
+ * Optional initialization parameters applied when the ScanView is created.
1318
+ *
1319
+ * Schema for ScanView JSON initialization parameters
1320
+ */
1321
+ export interface ScanViewInitializationParameters {
1322
+ /**
1323
+ * An optional uuid (v4) to correlate scans and data points within a workflow.
1324
+ */
1325
+ correlationId?: string;
1326
+ /**
1327
+ * Data contained within the QR code that's required to unlock scanning with the Showcase
1328
+ * Apps.
1329
+ */
1330
+ demo?: Demo;
1331
+ [property: string]: any;
1332
+ }
1333
+
1334
+ /**
1335
+ * Data contained within the QR code that's required to unlock scanning with the Showcase
1336
+ * Apps.
1337
+ */
1338
+ export interface Demo {
1339
+ qrVersion?: number;
1340
+ sfdc?: Sfdc;
1341
+ validityDate?: string;
1342
+ [property: string]: any;
1343
+ }
1344
+
1345
+ export interface Sfdc {
1346
+ accountId?: string;
1347
+ accountName?: string;
1348
+ oppId?: string;
1349
+ [property: string]: any;
1350
+ }
1351
+
1352
+ /**
1353
+ * Request to stop the current scanning session with optional message explaining the reason
1354
+ * for termination.
1355
+ */
1356
+ export interface WrapperSessionScanStopRequest {
1357
+ /**
1358
+ * Optional message describing the reason for stopping the scan session.
1359
+ */
1360
+ message?: string;
1361
+ [property: string]: any;
1362
+ }
1363
+
1364
+ /**
1365
+ * UI configuration options for the scan view, controlling optional controls, orientation,
1366
+ * and overlays.
1367
+ */
1368
+ export interface WrapperSessionScanViewConfigOptions {
1369
+ /**
1370
+ * Initial screen orientation when the scan view is presented.
1371
+ */
1372
+ defaultOrientation?: WrapperSessionScanViewConfigOptionDefaultOrientation;
1373
+ /**
1374
+ * Deprecated. iOS only. Button that dismisses the scan view. Use toolbarTitle instead.
1375
+ */
1376
+ doneButtonConfig?: WrapperSessionScanViewConfigOptionDoneButton;
1377
+ /**
1378
+ * Deprecated. iOS only. Static text label on the scan view. Use the Simple Instruction
1379
+ * Label UI Feedback preset instead.
1380
+ */
1381
+ label?: WrapperSessionScanViewConfigOptionLabel;
1382
+ /**
1383
+ * Optional button that lets users toggle between portrait and landscape orientations.
1384
+ */
1385
+ rotateButton?: WrapperSessionScanViewConfigOptionRotateButton;
1386
+ /**
1387
+ * Optional multi-mode segment control for switching between scanning configurations.
1388
+ */
1389
+ segmentConfig?: WrapperSessionScanViewConfigOptionSegmentConfig;
1390
+ /**
1391
+ * Title shown on the toolbar with a back button. Fullscreen scanning only; ignored when
1392
+ * using a ContainerView.
1393
+ */
1394
+ toolbarTitle?: string;
1395
+ [property: string]: any;
1396
+ }
1397
+
1398
+ /**
1399
+ * Initial screen orientation when the scan view is presented.
1400
+ *
1401
+ * Initial screen orientation when scanning starts.
1402
+ */
1403
+ export enum WrapperSessionScanViewConfigOptionDefaultOrientation {
1404
+ Landscape = "landscape",
1405
+ Portrait = "portrait",
1406
+ }
1407
+
1408
+ /**
1409
+ * Deprecated. iOS only. Button that dismisses the scan view. Use toolbarTitle instead.
1410
+ *
1411
+ * Deprecated. iOS only. A button that dismisses the scan view screen when pressed. Use
1412
+ * toolbarTitle instead.
1413
+ */
1414
+ export interface WrapperSessionScanViewConfigOptionDoneButton {
1415
+ /**
1416
+ * A color, denoted by a hex string of the button background. The default is empty (clear
1417
+ * color).
1418
+ */
1419
+ backgroundColor?: string;
1420
+ /**
1421
+ * A Float value indicating the corner rounding of the Done button.
1422
+ */
1423
+ cornerRadius?: number;
1424
+ /**
1425
+ * The preset used for width fill.
1426
+ */
1427
+ fillType?: FillType;
1428
+ /**
1429
+ * The name of the font (note: the font must be available for the device).
1430
+ */
1431
+ fontName?: string;
1432
+ /**
1433
+ * Button title font size in points (typically 8-72).
1434
+ */
1435
+ fontSize?: number;
1436
+ "offset.x"?: number;
1437
+ "offset.y"?: number;
1438
+ /**
1439
+ * The preset locations for the button along the x-axis.
1440
+ */
1441
+ positionXAlignment?: PositionXAlignment;
1442
+ /**
1443
+ * The preset locations for the button along the y-axis.
1444
+ */
1445
+ positionYAlignment?: PositionYAlignment;
1446
+ /**
1447
+ * A color, denoted by a hex string of the button title.
1448
+ */
1449
+ textColor?: string;
1450
+ /**
1451
+ * A color, denoted by a hex string used by the button title when pressed.
1452
+ */
1453
+ textColorHighlighted?: string;
1454
+ /**
1455
+ * The text displayed for the button.
1456
+ */
1457
+ title?: string;
1458
+ [property: string]: any;
1459
+ }
1460
+
1461
+ /**
1462
+ * The preset used for width fill.
1463
+ */
1464
+ export enum FillType {
1465
+ Fullwidth = "fullwidth",
1466
+ Rect = "rect",
1467
+ }
1468
+
1469
+ /**
1470
+ * The preset locations for the button along the x-axis.
1471
+ */
1472
+ export enum PositionXAlignment {
1473
+ Center = "center",
1474
+ Left = "left",
1475
+ Right = "right",
1476
+ }
1477
+
1478
+ /**
1479
+ * The preset locations for the button along the y-axis.
1480
+ */
1481
+ export enum PositionYAlignment {
1482
+ Bottom = "bottom",
1483
+ Center = "center",
1484
+ Top = "top",
1485
+ }
1486
+
1487
+ /**
1488
+ * Deprecated. iOS only. Static text label on the scan view. Use the Simple Instruction
1489
+ * Label UI Feedback preset instead.
1490
+ *
1491
+ * Deprecated. iOS only. A static text label displayed on the scan view. Use the Simple
1492
+ * Instruction Label UI Feedback preset instead.
1493
+ */
1494
+ export interface WrapperSessionScanViewConfigOptionLabel {
1495
+ /**
1496
+ * Hex color string for the label text.
1497
+ */
1498
+ color?: string;
1499
+ "offset.x"?: number;
1500
+ "offset.y"?: number;
1501
+ /**
1502
+ * The font size of the label.
1503
+ */
1504
+ size?: number;
1505
+ /**
1506
+ * The text to display.
1507
+ */
1508
+ text?: string;
1509
+ [property: string]: any;
1510
+ }
1511
+
1512
+ /**
1513
+ * Optional button that lets users toggle between portrait and landscape orientations.
1514
+ *
1515
+ * Button that toggles between portrait and landscape orientations when tapped. Positioned
1516
+ * according to alignment and optional offset settings.
1517
+ */
1518
+ export interface WrapperSessionScanViewConfigOptionRotateButton {
1519
+ /**
1520
+ * Corner of the screen where the rotate button is positioned.
1521
+ */
1522
+ alignment?: WrapperSessionScanViewConfigOptionElementAlignment;
1523
+ /**
1524
+ * Optional pixel offset from the aligned corner position.
1525
+ */
1526
+ offset?: WrapperSessionScanViewConfigOptionElementOffset;
1527
+ [property: string]: any;
1528
+ }
1529
+
1530
+ /**
1531
+ * Corner of the screen where the rotate button is positioned.
1532
+ *
1533
+ * Screen corner where the UI element will be positioned. Element will align to the
1534
+ * specified corner before applying any offset.
1535
+ */
1536
+ export enum WrapperSessionScanViewConfigOptionElementAlignment {
1537
+ BottomLeft = "bottom_left",
1538
+ BottomRight = "bottom_right",
1539
+ TopLeft = "top_left",
1540
+ TopRight = "top_right",
1541
+ }
1542
+
1543
+ /**
1544
+ * Optional pixel offset from the aligned corner position.
1545
+ *
1546
+ * Optional pixel offset from the element's aligned position. Use positive/negative values
1547
+ * to fine-tune positioning.
1548
+ */
1549
+ export interface WrapperSessionScanViewConfigOptionElementOffset {
1550
+ /**
1551
+ * Horizontal offset in pixels. Positive values move the element right, negative values move
1552
+ * it left.
1553
+ */
1554
+ x?: number;
1555
+ /**
1556
+ * Vertical offset in pixels. Positive values move the element down, negative values move it
1557
+ * up.
1558
+ */
1559
+ y?: number;
1560
+ [property: string]: any;
1561
+ }
1562
+
1563
+ /**
1564
+ * Optional multi-mode segment control for switching between scanning configurations.
1565
+ *
1566
+ * Multi-mode segment control allowing users to switch between different scanning
1567
+ * configurations (e.g., MRZ, Barcode, License Plate modes). Requires equal numbers of
1568
+ * titles and viewConfigs.
1569
+ */
1570
+ export interface WrapperSessionScanViewConfigOptionSegmentConfig {
1571
+ "offset.x"?: number;
1572
+ "offset.y"?: number;
1573
+ /**
1574
+ * Hex color code (e.g., 'FF0000' for red) applied to the selected segment and control
1575
+ * tinting.
1576
+ */
1577
+ tintColor?: string;
1578
+ /**
1579
+ * Zero-based index indicating which segment should be initially selected. Must be within
1580
+ * the bounds of the titles array.
1581
+ */
1582
+ titleIndex?: number;
1583
+ /**
1584
+ * Array of display names for each scanning mode shown to users in the segment control.
1585
+ */
1586
+ titles?: string[];
1587
+ /**
1588
+ * Array of ScanView configuration filenames located in the assets folder. Each file defines
1589
+ * a complete scanning mode configuration.
1590
+ */
1591
+ viewConfigs?: string[];
1592
+ [property: string]: any;
1593
+ }
1594
+
1595
+ /**
1596
+ * General information to be used for SDK initialization.
1597
+ */
1598
+ export interface WrapperSessionSdkInitializationRequest {
1599
+ /**
1600
+ * Root folder path the SDK uses when resolving asset files. Leave empty to use the default
1601
+ * asset location.
1602
+ */
1603
+ assetPathPrefix?: string;
1604
+ /**
1605
+ * Optional cache settings applied during initialization.
1606
+ */
1607
+ cacheConfig?: WrapperSessionSdkInitializationCacheConfig;
1608
+ /**
1609
+ * Anyline license key to be used for SDK initialization.
1610
+ */
1611
+ licenseKey?: string;
1612
+ [property: string]: any;
1613
+ }
1614
+
1615
+ /**
1616
+ * Optional cache settings applied during initialization.
1617
+ *
1618
+ * Cache configuration to be applied on SDK initialization.
1619
+ */
1620
+ export interface WrapperSessionSdkInitializationCacheConfig {
1621
+ /**
1622
+ * Whether offline license caching is enabled.
1623
+ */
1624
+ offlineLicenseCachingEnabled?: boolean;
1625
+ [property: string]: any;
1626
+ }
1627
+
1628
+ /**
1629
+ * Response containing SDK initialization result. Must include either failInfo (if
1630
+ * initialization failed) or succeedInfo (if successful). The 'initialized' boolean
1631
+ * indicates the overall status.
1632
+ */
1633
+ export interface WrapperSessionSdkInitializationResponse {
1634
+ /**
1635
+ * Populated when initialized is false. Contains the error that prevented SDK initialization.
1636
+ */
1637
+ failInfo?: WrapperSessionSdkInitializationResponseNotInitialized;
1638
+ /**
1639
+ * True if SDK initialization succeeded and scanning is available, false if initialization
1640
+ * failed.
1641
+ */
1642
+ initialized?: boolean;
1643
+ /**
1644
+ * Populated when initialized is true. Contains license details from the successful
1645
+ * initialization.
1646
+ */
1647
+ succeedInfo?: WrapperSessionSdkInitializationResponseInitialized;
1648
+ [property: string]: any;
1649
+ }
1650
+
1651
+ /**
1652
+ * Populated when initialized is false. Contains the error that prevented SDK
1653
+ * initialization.
1654
+ *
1655
+ * Details about a failed SDK initialization attempt.
1656
+ */
1657
+ export interface WrapperSessionSdkInitializationResponseNotInitialized {
1658
+ /**
1659
+ * The last error received while trying to initialize the SDK.
1660
+ */
1661
+ lastError?: string;
1662
+ [property: string]: any;
1663
+ }
1664
+
1665
+ /**
1666
+ * Populated when initialized is true. Contains license details from the successful
1667
+ * initialization.
1668
+ *
1669
+ * Details about a successful SDK initialization.
1670
+ */
1671
+ export interface WrapperSessionSdkInitializationResponseInitialized {
1672
+ /**
1673
+ * License expiry date in ISO 8601 format (YYYY-MM-DD).
1674
+ */
1675
+ expiryDate?: string;
1676
+ [property: string]: any;
1677
+ }
1678
+
1679
+ /**
1680
+ * Request to submit a User Corrected Result (UCR) for a previously scanned item.
1681
+ */
1682
+ export interface WrapperSessionUcrReportRequest {
1683
+ /**
1684
+ * Unique identifier for the scan event, taken from PluginResult.blobKey. Used to correlate
1685
+ * the correction with the original scan on the server.
1686
+ */
1687
+ blobKey?: string;
1688
+ /**
1689
+ * The corrected result value to report.
1690
+ */
1691
+ correctedResult?: string;
1692
+ [property: string]: any;
1693
+ }
1694
+
1695
+ /**
1696
+ * Response from UCR (User Corrected Result) reporting. Must include either failInfo (if
1697
+ * reporting failed) or succeedInfo (if successful), corresponding to the status field.
1698
+ */
1699
+ export interface WrapperSessionUcrReportResponse {
1700
+ /**
1701
+ * Populated when status is ucrReportFailed. Contains the error details.
1702
+ */
1703
+ failInfo?: WrapperSessionUcrReportResponseFail;
1704
+ /**
1705
+ * The final status of the UCR report submission.
1706
+ */
1707
+ status?: WrapperSessionUcrReportResponseStatus;
1708
+ /**
1709
+ * Populated when status is ucrReportSucceeded. Contains the server confirmation message.
1710
+ */
1711
+ succeedInfo?: WrapperSessionUcrReportResponseSucceed;
1712
+ [property: string]: any;
1713
+ }
1714
+
1715
+ /**
1716
+ * Populated when status is ucrReportFailed. Contains the error details.
1717
+ *
1718
+ * Details about a failed UCR report submission.
1719
+ */
1720
+ export interface WrapperSessionUcrReportResponseFail {
1721
+ /**
1722
+ * The last error received while reporting UCR.
1723
+ */
1724
+ lastError?: string;
1725
+ /**
1726
+ * The error code received while connecting to server.
1727
+ */
1728
+ responseErrorCode?: number;
1729
+ /**
1730
+ * The error message received while connecting to server.
1731
+ */
1732
+ responseErrorMessage?: string;
1733
+ [property: string]: any;
1734
+ }
1735
+
1736
+ /**
1737
+ * The final status of the UCR report submission.
1738
+ *
1739
+ * Final status of a UCR report submission.
1740
+ */
1741
+ export enum WrapperSessionUcrReportResponseStatus {
1742
+ UcrReportFailed = "ucrReportFailed",
1743
+ UcrReportSucceeded = "ucrReportSucceeded",
1744
+ }
1745
+
1746
+ /**
1747
+ * Populated when status is ucrReportSucceeded. Contains the server confirmation message.
1748
+ *
1749
+ * Details about a successful UCR report submission.
1750
+ */
1751
+ export interface WrapperSessionUcrReportResponseSucceed {
1752
+ /**
1753
+ * The confirmation message returned from the server.
1754
+ */
1755
+ message?: string;
1756
+ [property: string]: any;
1757
+ }