onfido-sdk-ui 14.21.0 → 14.22.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.
- package/license +425 -0
- package/package.json +1 -1
- package/types/Events.d.ts +4 -4
- package/types/Onfido.d.ts +2 -2
- package/types/loader.d.ts +1 -1
- package/types/shared/DocumentModule.types.d.ts +59 -0
- package/types/shared/Error.d.ts +78 -0
- package/types/shared/FaceModule.types.d.ts +11 -0
- package/types/shared/FeatureFlags.d.ts +28 -0
- package/types/shared/SdkParameters.d.ts +54 -0
- package/types/shared/Types.d.ts +21 -1
package/license
ADDED
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
Please see the terms of your Onfido Services Agreement which you are bound by with respect to your use of the Onfido
|
|
2
|
+
SDK. To the extent the Onfido SDK includes copies or substantial portions of software licenced under third party terms
|
|
3
|
+
and conditions this will be set out at https://sdk.onfido.com/capture/core/14.22.0/license.
|
|
4
|
+
|
|
5
|
+
In the event of any inconsistency between the Onfido Services Agreement and any third party terms and conditions, the
|
|
6
|
+
third party terms and conditions shall take precedence over the rights and
|
|
7
|
+
restrictions granted in the Onfido Services Agreement solely in respect of such third party dependencies set out
|
|
8
|
+
at https://sdk.onfido.com/capture/core/14.22.0/license.
|
|
9
|
+
|
|
10
|
+
3rd party licenses
|
|
11
|
+
------------------
|
|
12
|
+
|
|
13
|
+
Name: @onfido/capture-shared
|
|
14
|
+
Version: 1.28.4
|
|
15
|
+
License: null
|
|
16
|
+
Private: false
|
|
17
|
+
Description: A shared library to use in various capture packages
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
Name: @sentry/utils
|
|
22
|
+
Version: 7.64.0
|
|
23
|
+
License: MIT
|
|
24
|
+
Private: false
|
|
25
|
+
Description: Utilities for all Sentry JavaScript SDKs
|
|
26
|
+
Repository: undefined
|
|
27
|
+
Homepage: https://github.com/getsentry/sentry-javascript/tree/master/packages/utils
|
|
28
|
+
Author: Sentry
|
|
29
|
+
License Copyright:
|
|
30
|
+
===
|
|
31
|
+
|
|
32
|
+
Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
|
|
33
|
+
|
|
34
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
35
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
36
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
37
|
+
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
38
|
+
|
|
39
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
40
|
+
Software.
|
|
41
|
+
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
43
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
44
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
45
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
Name: uuid-random
|
|
51
|
+
Version: 1.3.2
|
|
52
|
+
License: MIT
|
|
53
|
+
Private: false
|
|
54
|
+
Description: Fastest UUIDv4 with good RNG
|
|
55
|
+
Repository: git+https://github.com/jchook/uuid-random.git
|
|
56
|
+
Homepage: https://github.com/jchook/uuid-random#readme
|
|
57
|
+
Author: Wes Roberts
|
|
58
|
+
License Copyright:
|
|
59
|
+
===
|
|
60
|
+
|
|
61
|
+
Copyright (c) 2016-2019 Wes Roberts
|
|
62
|
+
|
|
63
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
64
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
65
|
+
the Software without restriction, including without limitation the rights to
|
|
66
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
67
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
68
|
+
subject to the following conditions:
|
|
69
|
+
|
|
70
|
+
The above copyright notice and this permission notice shall be included in all
|
|
71
|
+
copies or substantial portions of the Software.
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
75
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
76
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
77
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
78
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
Name: ua-parser-js
|
|
84
|
+
Version: 1.0.36
|
|
85
|
+
License: MIT
|
|
86
|
+
Private: false
|
|
87
|
+
Description: Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment
|
|
88
|
+
Repository: https://github.com/faisalman/ua-parser-js.git
|
|
89
|
+
Homepage: https://github.com/faisalman/ua-parser-js
|
|
90
|
+
Author: Faisal Salman <f@faisalman.com> (http://faisalman.com)
|
|
91
|
+
Contributors:
|
|
92
|
+
Aamir Poonawalla <aamir@urx.com>
|
|
93
|
+
Admas <mollases@users.noreply.github.com>
|
|
94
|
+
algenon <m@antonz.ru>
|
|
95
|
+
Alvin Portillo <alvin@8thwall.com>
|
|
96
|
+
Amumu <yoyo837@hotmail.com>
|
|
97
|
+
Andrea Vaghi <andrea.vaghi@jobrapido.com>
|
|
98
|
+
Anton Zhiyanov <m@antonz.ru>
|
|
99
|
+
Arturo Mejia <amejia@blim.com>
|
|
100
|
+
Arun Rama Reddy <arunramareddy@gmail.com>
|
|
101
|
+
Austin Pray <austin@austinpray.com>
|
|
102
|
+
Bendeguz <symunona@gmail.com>
|
|
103
|
+
Benjamin Bertrand <bertrand.design@gmail.com>
|
|
104
|
+
Benjamin Urban <benjamin.urban@sueddeutsche.de>
|
|
105
|
+
boneyao <admin@boneyao.com>
|
|
106
|
+
Carl C Von Lewin <carlchristianlewin@gmail.com>
|
|
107
|
+
CESAR RAMOS <c@imagenproactiva.com>
|
|
108
|
+
Chad Killingsworth <ckillingsworth@jackhenry.com>
|
|
109
|
+
Christopher De Cairos <chris.decairos@gmail.com>
|
|
110
|
+
Cyrille David <cyrille@qonto.eu>
|
|
111
|
+
Dario Vladovic <d.vladimyr@gmail.com>
|
|
112
|
+
David Annez <david.annez@gmail.com>
|
|
113
|
+
Davit Barbakadze <jayarjo@gmail.com>
|
|
114
|
+
ddivernois <david-emmanuel.divernois@amadeus.com>
|
|
115
|
+
Deliaz <D3liaz@gmail.com>
|
|
116
|
+
Demis Palma <demis.palma@gmail.com>
|
|
117
|
+
dhoko <aurelien@protonmail.com>
|
|
118
|
+
dianhe <dianhe@webank.com>
|
|
119
|
+
dineshks1 <dineshks1@d.kumar44@outlook.com>
|
|
120
|
+
Dmitry Tyschenko <dtyschenko@gmail.com>
|
|
121
|
+
Douglas Li <doug@knotch.it>
|
|
122
|
+
Dumitru Uzun <contact@duzun.me>
|
|
123
|
+
Dustin <duburns@fanatics.com>
|
|
124
|
+
Elchin Valiyev <elchin.valiyev@autodesk.com>
|
|
125
|
+
Emil Hesslow <hesslow@gmail.com>
|
|
126
|
+
Eric Redon <eric.redon@coox.org>
|
|
127
|
+
Eric Schrenker <eric.schrenker@gmail.com>
|
|
128
|
+
Erik Hesselink <hesselink@gmail.com>
|
|
129
|
+
Fabian Becker <halfdan@xnorfz.de>
|
|
130
|
+
Faisal Salman <f@faisalman.com>
|
|
131
|
+
Frédéric Camblor <fcamblor@gmail.com>
|
|
132
|
+
Frederik Ring <frederik.ring@gmail.com>
|
|
133
|
+
Gerald Host <me@jacobford.co.uk>
|
|
134
|
+
Germán M. Bravo <german.mb@gmail.com>
|
|
135
|
+
Grigory Dmitrenko <grigory@snsk.ru>
|
|
136
|
+
gulpin <gulping.gulpin@gmail.com>
|
|
137
|
+
Hendrik Helwich <h.helwich@iplabs.de>
|
|
138
|
+
Hermann Ebert <ebbmo@HE.local>
|
|
139
|
+
hr6r <hedian@gmail.com>
|
|
140
|
+
Igor Topal <i.topal@smartweb.com.ua>
|
|
141
|
+
Ildar Kamalov <i.kamalov@adguard.com>
|
|
142
|
+
insanehong <insane.hong@navercorp.com>
|
|
143
|
+
jackpoll <jackpoll123456@gmail.com>
|
|
144
|
+
Jake Mc <startswithaj@users.noreply.github.com>
|
|
145
|
+
JBYoshi <12983479+JBYoshi@users.noreply.github.com>
|
|
146
|
+
Joey Parrish <joeyparrish@google.com>
|
|
147
|
+
John Tantalo <john.tantalo@gmail.com>
|
|
148
|
+
John Yanarella <jmy@codecatalyst.com>
|
|
149
|
+
Jon Buckley <jon@jbuckley.ca>
|
|
150
|
+
Josh Goldberg <joshuakgoldberg@outlook.com>
|
|
151
|
+
Junki-Ishida <junki_ishida@dwango.co.jp>
|
|
152
|
+
Kendall Buchanan <kendall@kendagriff.com>
|
|
153
|
+
Lee Treveil <leetreveil@gmail.com>
|
|
154
|
+
leonardo <leofiore@libero.it>
|
|
155
|
+
Levente Balogh <balogh.levente.hu@gmail.com>
|
|
156
|
+
Liam Quinn <lquinn@blackberry.com>
|
|
157
|
+
Lithin <lithin@webklipper.com>
|
|
158
|
+
ll-syber <670159357@qq.com>
|
|
159
|
+
Loris Guignard <loris.guignard@gmail.com>
|
|
160
|
+
Lukas Drgon <lukas.drgon@gmail.com>
|
|
161
|
+
Lukas Eipert <leipert@users.noreply.github.com>
|
|
162
|
+
Malash <i@malash.me>
|
|
163
|
+
Martynas <martynas@firmfirm.co>
|
|
164
|
+
Masahiko Sato <masasato@yahoo-corp.jp>
|
|
165
|
+
Matt Brophy <matt@brophy.org>
|
|
166
|
+
Matthew Origer <karatecowboy@gmail.com>
|
|
167
|
+
Maximilian Haupt <mail@maximilianhaupt.com>
|
|
168
|
+
Max Maurer <maxemanuel.maurer@gmail.com>
|
|
169
|
+
Max Nordlund <max.nordlund@gmail.com>
|
|
170
|
+
Michael Hess <mhess@connectify.me>
|
|
171
|
+
MimyyK <michele.marais@hakisa.com>
|
|
172
|
+
naoh <naoh.cs03g@nctu.edu.tw>
|
|
173
|
+
Nicholas Ionata <nionata@ufl.edu>
|
|
174
|
+
Nikhil Motiani <nikhil.motiani@outlook.com>
|
|
175
|
+
Nik Rolls <nik@rolls.cc>
|
|
176
|
+
nionata <n.ionata129@gmail.com>
|
|
177
|
+
niris <nirisix@gmail.com>
|
|
178
|
+
Nobuo Okada <nookada@yahoo-corp.jp>
|
|
179
|
+
o.drapeza <o.drapeza@tinkoff.ru>
|
|
180
|
+
otakuSiD <otakusid@gmail.com>
|
|
181
|
+
patrick-nurt <github@pereira.dk>
|
|
182
|
+
Pavel Studeny <studeny@avast.com>
|
|
183
|
+
Peter Dave Hello <PeterDaveHello@users.noreply.github.com>
|
|
184
|
+
philippsimon <github@philippsimon.de>
|
|
185
|
+
Pieter Hendrickx <pieter.hendrickx@belfius.be>
|
|
186
|
+
Piper Chester <piperchester@gmail.com>
|
|
187
|
+
Queen Vinyl Darkscratch <vinyldarkscratch@gmail.com>
|
|
188
|
+
Raine Makelainen <raine.makelainen@jolla.com>
|
|
189
|
+
Raman Savaryn <homeneartheocean@gmail.com>
|
|
190
|
+
Robert Tod <robert@qubit.com>
|
|
191
|
+
roman.savarin <roman.savarin@skywindgroup.com>
|
|
192
|
+
Ron Korland <ron@testim.io>
|
|
193
|
+
Ross Noble <rosshnoble@gmail.com>
|
|
194
|
+
ruicong <466403866@qq.com>
|
|
195
|
+
Sandro Sonntag <sandro.sonntag@adorsys.de>
|
|
196
|
+
sgautrea <shanegautreau@gmail.com>
|
|
197
|
+
Shane Gautreau <sgautrea@opentext.com>
|
|
198
|
+
Shane Thacker <shane@steadymade.com>
|
|
199
|
+
Shreedhar <shreedhar@uber.com>
|
|
200
|
+
Simon Eisenmann <simon@longsleep.org>
|
|
201
|
+
Simon Lang <me@simonlang.org>
|
|
202
|
+
Stiekel <histkc@gmail.com>
|
|
203
|
+
sUP <dani3l@gmail.com>
|
|
204
|
+
Sylvain Gizard <sylvain.gizard@gmail.com>
|
|
205
|
+
szchenghuang <szchenghuang@gmail.com>
|
|
206
|
+
Tanguy Krotoff <tkrotoff@gmail.com>
|
|
207
|
+
Tony Tomarchio <tony@tomarchio.cc>
|
|
208
|
+
Ulrich Schmidt <u.schmidt@velian.de>
|
|
209
|
+
Vadim Kurachevsky <vadim@hmvs.org>
|
|
210
|
+
Yılmaz <yilmazdemir36@gmail.com>
|
|
211
|
+
yuanyang <work_yuanyang@163.com>
|
|
212
|
+
Yun Young-jin <yupmin@yupmin-office-macmini.local>
|
|
213
|
+
Zach Bjornson <zbbjornson@gmail.com>
|
|
214
|
+
License Copyright:
|
|
215
|
+
===
|
|
216
|
+
|
|
217
|
+
MIT License
|
|
218
|
+
|
|
219
|
+
Copyright (c) 2012-2023 Faisal Salman <<f@faisalman.com>>
|
|
220
|
+
|
|
221
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
222
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
223
|
+
in the Software without restriction, including without limitation the rights
|
|
224
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
225
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
226
|
+
furnished to do so, subject to the following conditions:
|
|
227
|
+
|
|
228
|
+
The above copyright notice and this permission notice shall be included in all
|
|
229
|
+
copies or substantial portions of the Software.
|
|
230
|
+
|
|
231
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
232
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
233
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
234
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
235
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
236
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
237
|
+
SOFTWARE.
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
Name: js-cookie
|
|
243
|
+
Version: 3.0.5
|
|
244
|
+
License: MIT
|
|
245
|
+
Private: false
|
|
246
|
+
Description: A simple, lightweight JavaScript API for handling cookies
|
|
247
|
+
Repository: git://github.com/js-cookie/js-cookie.git
|
|
248
|
+
Author: Klaus Hartl
|
|
249
|
+
License Copyright:
|
|
250
|
+
===
|
|
251
|
+
|
|
252
|
+
MIT License
|
|
253
|
+
|
|
254
|
+
Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors
|
|
255
|
+
|
|
256
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
257
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
258
|
+
in the Software without restriction, including without limitation the rights
|
|
259
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
260
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
261
|
+
furnished to do so, subject to the following conditions:
|
|
262
|
+
|
|
263
|
+
The above copyright notice and this permission notice shall be included in all
|
|
264
|
+
copies or substantial portions of the Software.
|
|
265
|
+
|
|
266
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
267
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
268
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
269
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
270
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
271
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
272
|
+
SOFTWARE.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
Name: engine.io-parser
|
|
278
|
+
Version: 5.2.1
|
|
279
|
+
License: MIT
|
|
280
|
+
Private: false
|
|
281
|
+
Description: Parser for the client for the realtime Engine
|
|
282
|
+
Repository: git@github.com:socketio/engine.io-parser.git
|
|
283
|
+
Homepage: https://github.com/socketio/engine.io-parser
|
|
284
|
+
License Copyright:
|
|
285
|
+
===
|
|
286
|
+
|
|
287
|
+
(The MIT License)
|
|
288
|
+
|
|
289
|
+
Copyright (c) 2016 Guillermo Rauch (@rauchg)
|
|
290
|
+
|
|
291
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
292
|
+
a copy of this software and associated documentation files (the
|
|
293
|
+
'Software'), to deal in the Software without restriction, including
|
|
294
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
295
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
296
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
297
|
+
the following conditions:
|
|
298
|
+
|
|
299
|
+
The above copyright notice and this permission notice shall be
|
|
300
|
+
included in all copies or substantial portions of the Software.
|
|
301
|
+
|
|
302
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
303
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
304
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
305
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
306
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
307
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
308
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
Name: @socket.io/component-emitter
|
|
313
|
+
Version: 3.1.0
|
|
314
|
+
License: MIT
|
|
315
|
+
Private: false
|
|
316
|
+
Description: Event emitter
|
|
317
|
+
Repository: https://github.com/socketio/emitter.git
|
|
318
|
+
License Copyright:
|
|
319
|
+
===
|
|
320
|
+
|
|
321
|
+
(The MIT License)
|
|
322
|
+
|
|
323
|
+
Copyright (c) 2014 Component contributors <dev@component.io>
|
|
324
|
+
|
|
325
|
+
Permission is hereby granted, free of charge, to any person
|
|
326
|
+
obtaining a copy of this software and associated documentation
|
|
327
|
+
files (the "Software"), to deal in the Software without
|
|
328
|
+
restriction, including without limitation the rights to use,
|
|
329
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
330
|
+
copies of the Software, and to permit persons to whom the
|
|
331
|
+
Software is furnished to do so, subject to the following
|
|
332
|
+
conditions:
|
|
333
|
+
|
|
334
|
+
The above copyright notice and this permission notice shall be
|
|
335
|
+
included in all copies or substantial portions of the Software.
|
|
336
|
+
|
|
337
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
338
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
339
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
340
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
341
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
342
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
343
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
344
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
Name: engine.io-client
|
|
350
|
+
Version: 6.5.2
|
|
351
|
+
License: MIT
|
|
352
|
+
Private: false
|
|
353
|
+
Description: Client for the realtime Engine
|
|
354
|
+
Repository: https://github.com/socketio/engine.io-client.git
|
|
355
|
+
Homepage: https://github.com/socketio/engine.io-client
|
|
356
|
+
Contributors:
|
|
357
|
+
Guillermo Rauch <rauchg@gmail.com>
|
|
358
|
+
Vladimir Dronnikov <dronnikov@gmail.com>
|
|
359
|
+
Christoph Dorn
|
|
360
|
+
Mark Mokryn <mokesmokes@gmail.com>
|
|
361
|
+
License Copyright:
|
|
362
|
+
===
|
|
363
|
+
|
|
364
|
+
(The MIT License)
|
|
365
|
+
|
|
366
|
+
Copyright (c) 2014-2015 Automattic <dev@cloudup.com>
|
|
367
|
+
|
|
368
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
369
|
+
a copy of this software and associated documentation files (the
|
|
370
|
+
'Software'), to deal in the Software without restriction, including
|
|
371
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
372
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
373
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
374
|
+
the following conditions:
|
|
375
|
+
|
|
376
|
+
The above copyright notice and this permission notice shall be
|
|
377
|
+
included in all copies or substantial portions of the Software.
|
|
378
|
+
|
|
379
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
380
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
381
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
382
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
383
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
384
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
385
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
Name: socket.io-client
|
|
391
|
+
Version: 4.4.0
|
|
392
|
+
License: null
|
|
393
|
+
Private: false
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
Name: socket.io-parser
|
|
398
|
+
Version: 4.2.4
|
|
399
|
+
License: MIT
|
|
400
|
+
Private: false
|
|
401
|
+
Description: socket.io protocol parser
|
|
402
|
+
Repository: https://github.com/socketio/socket.io-parser.git
|
|
403
|
+
License Copyright:
|
|
404
|
+
===
|
|
405
|
+
|
|
406
|
+
(The MIT License)
|
|
407
|
+
|
|
408
|
+
Copyright (c) 2014 Guillermo Rauch <guillermo@learnboost.com>
|
|
409
|
+
|
|
410
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
411
|
+
this software and associated documentation files (the 'Software'), to deal in
|
|
412
|
+
the Software without restriction, including without limitation the rights to
|
|
413
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
414
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
415
|
+
subject to the following conditions:
|
|
416
|
+
|
|
417
|
+
The above copyright notice and this permission notice shall be included in all
|
|
418
|
+
copies or substantial portions of the Software.
|
|
419
|
+
|
|
420
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
421
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
422
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
423
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
424
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
425
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/package.json
CHANGED
package/types/Events.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CaptureModule } from '
|
|
2
|
-
import type { SdkError } from '
|
|
3
|
-
import type { Event } from '
|
|
4
|
-
import type { CompleteData } from '
|
|
1
|
+
import type { CaptureModule } from './shared/Types';
|
|
2
|
+
import type { SdkError } from './shared/Error';
|
|
3
|
+
import type { Event } from './shared/EventEmitter';
|
|
4
|
+
import type { CompleteData } from './shared/SdkParameters';
|
|
5
5
|
export type ModuleEvent<T extends string> = {
|
|
6
6
|
module: CaptureModule;
|
|
7
7
|
id: string;
|
package/types/Onfido.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Listener } from '
|
|
2
|
-
import type { SdkParameters } from '
|
|
1
|
+
import type { Listener } from './shared/EventEmitter';
|
|
2
|
+
import type { SdkParameters } from './shared/SdkParameters';
|
|
3
3
|
import type { CaptureRunEvents } from './Events';
|
|
4
4
|
export type Handle = {
|
|
5
5
|
addEventListener: <EventName extends keyof CaptureRunEvents>(eventName: EventName, listener: Listener<CaptureRunEvents[EventName]>) => void;
|
package/types/loader.d.ts
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type DocumentType = 'driving_licence' | 'national_identity_card' | 'residence_permit' | 'passport';
|
|
2
|
+
export type DocumentTypeGeneric = 'generic_document';
|
|
3
|
+
type DocumentCountrySelection = {
|
|
4
|
+
documentType: DocumentType;
|
|
5
|
+
issuingCountry: string;
|
|
6
|
+
};
|
|
7
|
+
type DocumentAllSelection = {
|
|
8
|
+
documentType: DocumentType;
|
|
9
|
+
allCountries: true;
|
|
10
|
+
};
|
|
11
|
+
type DocumentGenericSelection = {
|
|
12
|
+
documentType: DocumentTypeGeneric;
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const isDocumentCountrySelection: (selection: DocumentSelection) => selection is DocumentCountrySelection;
|
|
16
|
+
export declare const isDocumentAllSelection: (selection: DocumentSelection) => selection is DocumentAllSelection;
|
|
17
|
+
export declare const isDocumentGenericSelection: (selection: DocumentSelection) => selection is DocumentGenericSelection;
|
|
18
|
+
export type DocumentSelection = DocumentCountrySelection | DocumentAllSelection | DocumentGenericSelection;
|
|
19
|
+
export type DocumentSelectionFilter = {
|
|
20
|
+
include?: DocumentSelection[];
|
|
21
|
+
exclude?: DocumentSelection[];
|
|
22
|
+
};
|
|
23
|
+
export type GenericDocumentType = {
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
subTitle: string;
|
|
27
|
+
country: string;
|
|
28
|
+
pages: string;
|
|
29
|
+
};
|
|
30
|
+
export type DocumentModuleConfiguration = {
|
|
31
|
+
filter?: DocumentSelectionFilter;
|
|
32
|
+
extend?: GenericDocumentType[];
|
|
33
|
+
hideCountrySelection?: boolean;
|
|
34
|
+
uploadFallback?: boolean;
|
|
35
|
+
};
|
|
36
|
+
export type DocumentModuleInput = Record<string, unknown>;
|
|
37
|
+
export type DocumentSideOutput = {
|
|
38
|
+
id: string;
|
|
39
|
+
type?: string;
|
|
40
|
+
};
|
|
41
|
+
export type Side = 'front' | 'back';
|
|
42
|
+
export type DocumentIds = Partial<Record<`${Side}` | `${Side}_video`, DocumentSideOutput>>;
|
|
43
|
+
export type DocumentModuleOutput = {
|
|
44
|
+
type: string;
|
|
45
|
+
sides: DocumentIds;
|
|
46
|
+
};
|
|
47
|
+
export type EnabledDocumentType = {
|
|
48
|
+
country: string;
|
|
49
|
+
document_type: string;
|
|
50
|
+
};
|
|
51
|
+
export type DocumentFeatureFlags = {
|
|
52
|
+
auto_capture_enabled_documents: EnabledDocumentType[];
|
|
53
|
+
auto_capture_timeout_ms?: number;
|
|
54
|
+
enable_auto_capture_doc_capture?: boolean;
|
|
55
|
+
enable_js_camera_doc_capture?: boolean;
|
|
56
|
+
max_total_retries?: number;
|
|
57
|
+
enable_native_camera_fallback?: boolean;
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Configuration } from './Types';
|
|
2
|
+
export declare enum SdkErrorLevel {
|
|
3
|
+
EXTERNAL = "external",
|
|
4
|
+
INTERNAL = "internal"
|
|
5
|
+
}
|
|
6
|
+
export type SdkErrorTypes = 'invalid_token' | 'expired_token' | 'expired_trial' | 'geoblocked_request' | 'permissions_unavailable' | 'exception' | 'unsupported' | 'unsupported_feature' | 'invalid_sdk_parameter' | 'restart' | 'desktop' | 'unsupported_sdk_version' | 'no_camera' | 'user_consent_denied' | 'uncaught_fetch_error' | 'api_error' | 'cross_device_verification_invalid' | 'cross_device_verification_abort';
|
|
7
|
+
export declare const isSdkError: (error: unknown) => boolean;
|
|
8
|
+
export type SdkErrors = {
|
|
9
|
+
type: SdkErrorTypes;
|
|
10
|
+
message: string;
|
|
11
|
+
level: SdkErrorLevel;
|
|
12
|
+
};
|
|
13
|
+
export declare const CrossDeviceRestartError: SdkErrors;
|
|
14
|
+
export declare const CrossDeviceDesktopError: SdkErrors;
|
|
15
|
+
export declare const CrossDeviceVerificationInvalidError: SdkErrors;
|
|
16
|
+
export declare const CrossDeviceVerificationAbortError: SdkErrors;
|
|
17
|
+
export declare const InvalidTokenError: SdkErrors;
|
|
18
|
+
export declare const ExpiredTokenError: SdkErrors;
|
|
19
|
+
export declare const ExpiredTrialError: SdkErrors;
|
|
20
|
+
export declare const GeoblockedRequestError: SdkErrors;
|
|
21
|
+
export declare const PermissionsUnavailableError: SdkErrors;
|
|
22
|
+
export declare const ExceptionError: SdkErrors;
|
|
23
|
+
export declare const UnsupportedError: SdkErrors;
|
|
24
|
+
export declare const UnsupportedFeatureError: SdkErrors;
|
|
25
|
+
export declare const InvalidSdkParameter: SdkErrors;
|
|
26
|
+
export declare const UnsupportedSdkVersionError: SdkErrors;
|
|
27
|
+
export declare const NoCameraError: SdkErrors;
|
|
28
|
+
export declare const UserConsentDeniedError: SdkErrors;
|
|
29
|
+
export declare const ApiError: SdkErrors;
|
|
30
|
+
export declare const UncaughtFetchError: SdkErrors;
|
|
31
|
+
export type ErrorModuleConfiguration = Configuration & {
|
|
32
|
+
type: SdkErrorTypes;
|
|
33
|
+
};
|
|
34
|
+
export declare const SdkWarningType = "SdkWarning";
|
|
35
|
+
export declare class SdkError extends Error {
|
|
36
|
+
readonly name = "SdkError";
|
|
37
|
+
type: SdkErrorTypes;
|
|
38
|
+
exception?: Error | unknown;
|
|
39
|
+
level: SdkErrorLevel;
|
|
40
|
+
body?: unknown;
|
|
41
|
+
httpCode?: number;
|
|
42
|
+
stack?: string;
|
|
43
|
+
constructor({ type, message, level, exception, stack, body, httpCode, }: {
|
|
44
|
+
type: SdkErrorTypes;
|
|
45
|
+
message: string;
|
|
46
|
+
level: SdkErrorLevel;
|
|
47
|
+
exception?: Error | unknown;
|
|
48
|
+
stack?: string;
|
|
49
|
+
body?: unknown;
|
|
50
|
+
httpCode?: number;
|
|
51
|
+
});
|
|
52
|
+
encode(): {
|
|
53
|
+
name: string;
|
|
54
|
+
type: SdkErrorTypes;
|
|
55
|
+
message: string;
|
|
56
|
+
level: SdkErrorLevel;
|
|
57
|
+
stack: string | undefined;
|
|
58
|
+
exception: unknown;
|
|
59
|
+
body: unknown;
|
|
60
|
+
httpCode: number | undefined;
|
|
61
|
+
};
|
|
62
|
+
static decode(error: SdkError): SdkError;
|
|
63
|
+
}
|
|
64
|
+
export type ErrorCallback = (error: {
|
|
65
|
+
type: SdkErrorTypes;
|
|
66
|
+
message: string;
|
|
67
|
+
exception?: Error | unknown;
|
|
68
|
+
}) => void;
|
|
69
|
+
export declare const formatError: (error: SdkError | Error | unknown) => {
|
|
70
|
+
name: string;
|
|
71
|
+
type: SdkErrorTypes;
|
|
72
|
+
message: string;
|
|
73
|
+
level: SdkErrorLevel;
|
|
74
|
+
stack: string | undefined;
|
|
75
|
+
exception: unknown;
|
|
76
|
+
body: unknown;
|
|
77
|
+
httpCode: number | undefined;
|
|
78
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type FaceModuleConfiguration = {
|
|
2
|
+
showIntro?: boolean;
|
|
3
|
+
useMultipleSelfieCapture?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type FaceModuleOutput = {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
export type FaceFeatureFlags = {
|
|
9
|
+
sign_upload?: boolean;
|
|
10
|
+
enable_native_camera_fallback?: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { DocumentFeatureFlags } from './DocumentModule.types';
|
|
2
|
+
import type { FaceFeatureFlags } from './FaceModule.types';
|
|
3
|
+
export type LogLevels = 'debug' | 'info' | 'warning' | 'error' | 'fatal';
|
|
4
|
+
export type SdkFeatures = {
|
|
5
|
+
enable_require_applicant_consents?: boolean;
|
|
6
|
+
disable_cross_device_sms?: boolean;
|
|
7
|
+
enable_in_house_analytics?: boolean;
|
|
8
|
+
enable_performance_analytics?: boolean;
|
|
9
|
+
enable_document_support_rules?: boolean;
|
|
10
|
+
web_allow_source_only_media_callback?: boolean;
|
|
11
|
+
web_enable_cross_device_verification?: boolean;
|
|
12
|
+
logger?: {
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
levels?: LogLevels[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ExperimentalFeatures = {
|
|
18
|
+
enable_multi_frame_capture?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type FeatureFlags = {
|
|
21
|
+
document_capture?: DocumentFeatureFlags;
|
|
22
|
+
face_selfie_capture?: FaceFeatureFlags;
|
|
23
|
+
experimental_features?: ExperimentalFeatures;
|
|
24
|
+
sdk_features?: SdkFeatures;
|
|
25
|
+
device_intelligence?: {
|
|
26
|
+
passive_signals?: Record<string, unknown>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { LegacyStepDefinition, LegacyStepType, CrossDevicePolicy, EnterpriseFeatures, LocaleDirection, Theme, ThemeConfig, Translations, UserDetails } from './Types';
|
|
2
|
+
import type { ErrorCallback } from './Error';
|
|
3
|
+
import type { CrossDeviceMethod } from './CrossDeviceConnect.types';
|
|
4
|
+
import type { EnterpriseFeatureCallback } from './Enterprise';
|
|
5
|
+
export declare const legacySteps: LegacyStepType[];
|
|
6
|
+
export declare const isLegacyStepType: (step: LegacyStepDefinition) => step is LegacyStepType;
|
|
7
|
+
export type CompleteData = Record<string, unknown>;
|
|
8
|
+
export type EnterpriseFeatureParameter = EnterpriseFeatures & EnterpriseFeatureCallback;
|
|
9
|
+
export type CommonSdkParameters = {
|
|
10
|
+
containerEl?: HTMLElement;
|
|
11
|
+
containerId?: string;
|
|
12
|
+
onError?: ErrorCallback;
|
|
13
|
+
onComplete?: (data: CompleteData) => void;
|
|
14
|
+
enterpriseFeatures?: EnterpriseFeatureParameter;
|
|
15
|
+
theme?: Theme;
|
|
16
|
+
customUI?: ThemeConfig;
|
|
17
|
+
language?: string | LegacyLanguageParameter;
|
|
18
|
+
translations?: Translations;
|
|
19
|
+
};
|
|
20
|
+
export type LegacyLanguageParameter = {
|
|
21
|
+
locale?: string;
|
|
22
|
+
phrases?: Record<string, string>;
|
|
23
|
+
mobilePhrases?: Record<string, string>;
|
|
24
|
+
direction?: LocaleDirection;
|
|
25
|
+
};
|
|
26
|
+
export type TokenParameters = {
|
|
27
|
+
token: string;
|
|
28
|
+
language?: string | LegacyLanguageParameter;
|
|
29
|
+
translations?: Translations;
|
|
30
|
+
theme?: Theme;
|
|
31
|
+
/***
|
|
32
|
+
* You can change the default country for the SMS number input by passing the
|
|
33
|
+
* smsNumberCountryCode option when the SDK is initialized. The value should
|
|
34
|
+
* be a string containing a 2-character ISO Country code. If empty, the SMS
|
|
35
|
+
* number country code will default to GB.
|
|
36
|
+
*/
|
|
37
|
+
smsNumberCountryCode?: string;
|
|
38
|
+
userDetails?: UserDetails;
|
|
39
|
+
_crossDeviceLinkMethods?: CrossDeviceMethod[];
|
|
40
|
+
crossDevicePolicy?: CrossDevicePolicy;
|
|
41
|
+
disableAnalytics?: boolean;
|
|
42
|
+
disableAnalyticsCookies?: boolean;
|
|
43
|
+
} & CommonSdkParameters;
|
|
44
|
+
export type StudioSdkParameters = {
|
|
45
|
+
workflowRunId: string;
|
|
46
|
+
disableWelcomeScreen?: boolean;
|
|
47
|
+
} & TokenParameters;
|
|
48
|
+
export type ClassicSdkParameters = {
|
|
49
|
+
steps: LegacyStepDefinition[];
|
|
50
|
+
} & TokenParameters;
|
|
51
|
+
export type CrossDeviceSdkParameters = CommonSdkParameters & {
|
|
52
|
+
roomId?: string;
|
|
53
|
+
};
|
|
54
|
+
export type SdkParameters = StudioSdkParameters | ClassicSdkParameters | CrossDeviceSdkParameters;
|
package/types/shared/Types.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export type ModuleUnsupported = {
|
|
|
14
14
|
export type Outputs = ModuleFinish | ModuleUnsupported;
|
|
15
15
|
export type Output = unknown | ModuleError;
|
|
16
16
|
export type ExecutorMethod = 'bootstrap' | 'ping' | 'start';
|
|
17
|
-
export type
|
|
17
|
+
export type CrossDeviceExecutorMethod = 'crossDevice.update';
|
|
18
|
+
export type RunnerMethod = 'captureModule.finish' | 'captureModule.error' | 'captureModule.unsupported' | 'crossDevice.start' | 'crossDevice.preload' | 'crossDevice.verify' | 'crossDevice.abort' | 'analytics.send' | 'analytics.userAnalytics' | 'navigation.back' | 'navigation.externalLink' | 'customCallback.invoke' | 'passkey.create' | 'passkey.get';
|
|
18
19
|
export type Configuration<T = unknown> = {
|
|
19
20
|
translations: T;
|
|
20
21
|
theme?: Theme;
|
|
@@ -89,6 +90,9 @@ export type ClientConfiguration = {
|
|
|
89
90
|
enabled: boolean;
|
|
90
91
|
levels: string[];
|
|
91
92
|
};
|
|
93
|
+
crossDevice: {
|
|
94
|
+
verification?: boolean;
|
|
95
|
+
};
|
|
92
96
|
enterpriseFeatures?: EnterpriseFeatures;
|
|
93
97
|
crossDeviceClientIntroProductName?: string;
|
|
94
98
|
crossDeviceClientIntroProductLogoSrc?: string;
|
|
@@ -174,9 +178,25 @@ export type TrackedEnvironmentData = {
|
|
|
174
178
|
browser?: string;
|
|
175
179
|
browser_version?: string;
|
|
176
180
|
};
|
|
181
|
+
export declare enum CrossDeviceVerificationStatus {
|
|
182
|
+
VALID = "VALID",
|
|
183
|
+
INVALID = "INVALID",
|
|
184
|
+
PENDING = "PENDING",
|
|
185
|
+
ABORT = "ABORT"
|
|
186
|
+
}
|
|
177
187
|
export type CrossDeviceInitialState = unknown;
|
|
188
|
+
export type ConnectResult = {
|
|
189
|
+
roomId: string;
|
|
190
|
+
};
|
|
191
|
+
export type CrossDeviceDetails = ConnectResult & {
|
|
192
|
+
connected: boolean;
|
|
193
|
+
link: string;
|
|
194
|
+
code?: string;
|
|
195
|
+
verificationStatus?: CrossDeviceVerificationStatus;
|
|
196
|
+
};
|
|
178
197
|
export type CrossDeviceInput = {
|
|
179
198
|
backActionType?: 'module' | 'cross-module';
|
|
199
|
+
details: CrossDeviceDetails;
|
|
180
200
|
};
|
|
181
201
|
export declare enum CaptureModuleType {
|
|
182
202
|
HOSTED = "hosted",
|