@regulaforensics/facesdk-webclient 5.2.3 → 5.2.4

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 (313) hide show
  1. package/README.md +10 -10
  2. package/dist/main/index.cjs +1 -0
  3. package/dist/module/index.js +1 -0
  4. package/lib/index.d.ts +2036 -0
  5. package/package.json +50 -18
  6. package/.eslintrc +0 -17
  7. package/.github/workflows/npm-publish.yml +0 -21
  8. package/.github/workflows/run-smoke-test.yml +0 -30
  9. package/.github/workflows/trivy-scan.yaml +0 -24
  10. package/dev.md +0 -13
  11. package/dist/cjs-es5/api/diagnostics-api.js +0 -199
  12. package/dist/cjs-es5/api/group-api.js +0 -744
  13. package/dist/cjs-es5/api/liveness-api.js +0 -355
  14. package/dist/cjs-es5/api/liveness20-api.js +0 -201
  15. package/dist/cjs-es5/api/matching-api.js +0 -373
  16. package/dist/cjs-es5/api/person-api.js +0 -929
  17. package/dist/cjs-es5/api/search-api.js +0 -207
  18. package/dist/cjs-es5/api.js +0 -32
  19. package/dist/cjs-es5/base.js +0 -81
  20. package/dist/cjs-es5/common.js +0 -235
  21. package/dist/cjs-es5/configuration.js +0 -45
  22. package/dist/cjs-es5/ext/face-sdk.js +0 -24
  23. package/dist/cjs-es5/ext/group-api.js +0 -47
  24. package/dist/cjs-es5/ext/index.js +0 -14
  25. package/dist/cjs-es5/ext/matching-api.js +0 -47
  26. package/dist/cjs-es5/ext/person-api.js +0 -58
  27. package/dist/cjs-es5/ext/search-api.js +0 -33
  28. package/dist/cjs-es5/index.js +0 -29
  29. package/dist/cjs-es5/models/crop.js +0 -16
  30. package/dist/cjs-es5/models/detect-request-attributes.js +0 -16
  31. package/dist/cjs-es5/models/detect-request.js +0 -16
  32. package/dist/cjs-es5/models/detect-response-all-of.js +0 -16
  33. package/dist/cjs-es5/models/detect-response.js +0 -16
  34. package/dist/cjs-es5/models/detect-result.js +0 -16
  35. package/dist/cjs-es5/models/detection-face.js +0 -16
  36. package/dist/cjs-es5/models/detection-quality.js +0 -16
  37. package/dist/cjs-es5/models/detection.js +0 -16
  38. package/dist/cjs-es5/models/face-align-type-quality.js +0 -29
  39. package/dist/cjs-es5/models/face-attribute.js +0 -37
  40. package/dist/cjs-es5/models/face-image-quality-align-type.js +0 -29
  41. package/dist/cjs-es5/models/face-image-quality-groups-strings.js +0 -32
  42. package/dist/cjs-es5/models/face-image-quality-groups.js +0 -32
  43. package/dist/cjs-es5/models/face-image-quality-status.js +0 -27
  44. package/dist/cjs-es5/models/face-quality-config-name.js +0 -72
  45. package/dist/cjs-es5/models/face-quality-scenarios.js +0 -32
  46. package/dist/cjs-es5/models/face-quality-status.js +0 -27
  47. package/dist/cjs-es5/models/face-recognition-result-code.js +0 -14
  48. package/dist/cjs-es5/models/face-sdkresult-code.js +0 -63
  49. package/dist/cjs-es5/models/face-sdkresult.js +0 -16
  50. package/dist/cjs-es5/models/faces-response-all-of.js +0 -16
  51. package/dist/cjs-es5/models/faces-response.js +0 -16
  52. package/dist/cjs-es5/models/group-all-of.js +0 -16
  53. package/dist/cjs-es5/models/group-page-all-of.js +0 -16
  54. package/dist/cjs-es5/models/group-page.js +0 -16
  55. package/dist/cjs-es5/models/group-to-create.js +0 -16
  56. package/dist/cjs-es5/models/group.js +0 -16
  57. package/dist/cjs-es5/models/image-data.js +0 -3
  58. package/dist/cjs-es5/models/image-fields-image.js +0 -16
  59. package/dist/cjs-es5/models/image-fields.js +0 -16
  60. package/dist/cjs-es5/models/image-page-all-of.js +0 -16
  61. package/dist/cjs-es5/models/image-page.js +0 -16
  62. package/dist/cjs-es5/models/image-source.js +0 -30
  63. package/dist/cjs-es5/models/image.js +0 -16
  64. package/dist/cjs-es5/models/index.js +0 -85
  65. package/dist/cjs-es5/models/liveness-transaction.js +0 -16
  66. package/dist/cjs-es5/models/match-and-search-request-all-of-images.js +0 -16
  67. package/dist/cjs-es5/models/match-and-search-request-all-of.js +0 -16
  68. package/dist/cjs-es5/models/match-and-search-request.js +0 -16
  69. package/dist/cjs-es5/models/match-and-search-response-all-of-detections.js +0 -16
  70. package/dist/cjs-es5/models/match-and-search-response-all-of.js +0 -16
  71. package/dist/cjs-es5/models/match-and-search-response.js +0 -16
  72. package/dist/cjs-es5/models/match-image-detection.js +0 -16
  73. package/dist/cjs-es5/models/match-image-result.js +0 -16
  74. package/dist/cjs-es5/models/match-image.js +0 -16
  75. package/dist/cjs-es5/models/match-request-output-image-params-crop.js +0 -24
  76. package/dist/cjs-es5/models/match-request-output-image-params.js +0 -16
  77. package/dist/cjs-es5/models/match-request.js +0 -16
  78. package/dist/cjs-es5/models/match-response-all-of.js +0 -16
  79. package/dist/cjs-es5/models/match-response.js +0 -16
  80. package/dist/cjs-es5/models/operation-log.js +0 -16
  81. package/dist/cjs-es5/models/output-image-params.js +0 -16
  82. package/dist/cjs-es5/models/page.js +0 -16
  83. package/dist/cjs-es5/models/person-all-of.js +0 -16
  84. package/dist/cjs-es5/models/person-created-response.js +0 -16
  85. package/dist/cjs-es5/models/person-fields.js +0 -16
  86. package/dist/cjs-es5/models/person-with-images-all-of.js +0 -16
  87. package/dist/cjs-es5/models/person-with-images.js +0 -16
  88. package/dist/cjs-es5/models/person.js +0 -16
  89. package/dist/cjs-es5/models/persons-page-all-of.js +0 -16
  90. package/dist/cjs-es5/models/persons-page.js +0 -16
  91. package/dist/cjs-es5/models/process-param.js +0 -16
  92. package/dist/cjs-es5/models/quality-config.js +0 -16
  93. package/dist/cjs-es5/models/quality-detail.js +0 -16
  94. package/dist/cjs-es5/models/quality-details-groups.js +0 -16
  95. package/dist/cjs-es5/models/quality-request.js +0 -16
  96. package/dist/cjs-es5/models/recognize-image-all-of.js +0 -16
  97. package/dist/cjs-es5/models/recognize-image.js +0 -16
  98. package/dist/cjs-es5/models/resize-options.js +0 -16
  99. package/dist/cjs-es5/models/search-bad-params.js +0 -16
  100. package/dist/cjs-es5/models/search-detection.js +0 -16
  101. package/dist/cjs-es5/models/search-parameters-create-person.js +0 -16
  102. package/dist/cjs-es5/models/search-parameters.js +0 -16
  103. package/dist/cjs-es5/models/search-person-all-of.js +0 -16
  104. package/dist/cjs-es5/models/search-person.js +0 -16
  105. package/dist/cjs-es5/models/search-request-all-of.js +0 -16
  106. package/dist/cjs-es5/models/search-request.js +0 -16
  107. package/dist/cjs-es5/models/search-result-all-of.js +0 -16
  108. package/dist/cjs-es5/models/search-result.js +0 -16
  109. package/dist/cjs-es5/models/transaction-info.js +0 -16
  110. package/dist/cjs-es5/models/update-group.js +0 -16
  111. package/dist/cjs-es5/package.json +0 -1
  112. package/dist/esm-es5/api/diagnostics-api.js +0 -196
  113. package/dist/esm-es5/api/group-api.js +0 -741
  114. package/dist/esm-es5/api/liveness-api.js +0 -352
  115. package/dist/esm-es5/api/liveness20-api.js +0 -198
  116. package/dist/esm-es5/api/matching-api.js +0 -370
  117. package/dist/esm-es5/api/person-api.js +0 -926
  118. package/dist/esm-es5/api/search-api.js +0 -204
  119. package/dist/esm-es5/api.js +0 -20
  120. package/dist/esm-es5/base.js +0 -78
  121. package/dist/esm-es5/common.js +0 -232
  122. package/dist/esm-es5/configuration.js +0 -42
  123. package/dist/esm-es5/ext/face-sdk.js +0 -21
  124. package/dist/esm-es5/ext/group-api.js +0 -44
  125. package/dist/esm-es5/ext/index.js +0 -2
  126. package/dist/esm-es5/ext/matching-api.js +0 -44
  127. package/dist/esm-es5/ext/person-api.js +0 -55
  128. package/dist/esm-es5/ext/search-api.js +0 -30
  129. package/dist/esm-es5/index.js +0 -17
  130. package/dist/esm-es5/models/crop.js +0 -14
  131. package/dist/esm-es5/models/detect-request-attributes.js +0 -14
  132. package/dist/esm-es5/models/detect-request.js +0 -14
  133. package/dist/esm-es5/models/detect-response-all-of.js +0 -14
  134. package/dist/esm-es5/models/detect-response.js +0 -14
  135. package/dist/esm-es5/models/detect-result.js +0 -14
  136. package/dist/esm-es5/models/detection-face.js +0 -14
  137. package/dist/esm-es5/models/detection-quality.js +0 -14
  138. package/dist/esm-es5/models/detection.js +0 -14
  139. package/dist/esm-es5/models/face-align-type-quality.js +0 -26
  140. package/dist/esm-es5/models/face-attribute.js +0 -34
  141. package/dist/esm-es5/models/face-image-quality-align-type.js +0 -26
  142. package/dist/esm-es5/models/face-image-quality-groups-strings.js +0 -29
  143. package/dist/esm-es5/models/face-image-quality-groups.js +0 -29
  144. package/dist/esm-es5/models/face-image-quality-status.js +0 -24
  145. package/dist/esm-es5/models/face-quality-config-name.js +0 -69
  146. package/dist/esm-es5/models/face-quality-scenarios.js +0 -29
  147. package/dist/esm-es5/models/face-quality-status.js +0 -24
  148. package/dist/esm-es5/models/face-recognition-result-code.js +0 -14
  149. package/dist/esm-es5/models/face-sdkresult-code.js +0 -60
  150. package/dist/esm-es5/models/face-sdkresult.js +0 -14
  151. package/dist/esm-es5/models/faces-response-all-of.js +0 -14
  152. package/dist/esm-es5/models/faces-response.js +0 -14
  153. package/dist/esm-es5/models/group-all-of.js +0 -14
  154. package/dist/esm-es5/models/group-page-all-of.js +0 -14
  155. package/dist/esm-es5/models/group-page.js +0 -14
  156. package/dist/esm-es5/models/group-to-create.js +0 -14
  157. package/dist/esm-es5/models/group.js +0 -14
  158. package/dist/esm-es5/models/image-data.js +0 -1
  159. package/dist/esm-es5/models/image-fields-image.js +0 -14
  160. package/dist/esm-es5/models/image-fields.js +0 -14
  161. package/dist/esm-es5/models/image-page-all-of.js +0 -14
  162. package/dist/esm-es5/models/image-page.js +0 -14
  163. package/dist/esm-es5/models/image-source.js +0 -27
  164. package/dist/esm-es5/models/image.js +0 -14
  165. package/dist/esm-es5/models/index.js +0 -73
  166. package/dist/esm-es5/models/liveness-transaction.js +0 -14
  167. package/dist/esm-es5/models/match-and-search-request-all-of-images.js +0 -14
  168. package/dist/esm-es5/models/match-and-search-request-all-of.js +0 -14
  169. package/dist/esm-es5/models/match-and-search-request.js +0 -14
  170. package/dist/esm-es5/models/match-and-search-response-all-of-detections.js +0 -14
  171. package/dist/esm-es5/models/match-and-search-response-all-of.js +0 -14
  172. package/dist/esm-es5/models/match-and-search-response.js +0 -14
  173. package/dist/esm-es5/models/match-image-detection.js +0 -14
  174. package/dist/esm-es5/models/match-image-result.js +0 -14
  175. package/dist/esm-es5/models/match-image.js +0 -14
  176. package/dist/esm-es5/models/match-request-output-image-params-crop.js +0 -21
  177. package/dist/esm-es5/models/match-request-output-image-params.js +0 -14
  178. package/dist/esm-es5/models/match-request.js +0 -14
  179. package/dist/esm-es5/models/match-response-all-of.js +0 -14
  180. package/dist/esm-es5/models/match-response.js +0 -14
  181. package/dist/esm-es5/models/operation-log.js +0 -14
  182. package/dist/esm-es5/models/output-image-params.js +0 -14
  183. package/dist/esm-es5/models/page.js +0 -14
  184. package/dist/esm-es5/models/person-all-of.js +0 -14
  185. package/dist/esm-es5/models/person-created-response.js +0 -14
  186. package/dist/esm-es5/models/person-fields.js +0 -14
  187. package/dist/esm-es5/models/person-with-images-all-of.js +0 -14
  188. package/dist/esm-es5/models/person-with-images.js +0 -14
  189. package/dist/esm-es5/models/person.js +0 -14
  190. package/dist/esm-es5/models/persons-page-all-of.js +0 -14
  191. package/dist/esm-es5/models/persons-page.js +0 -14
  192. package/dist/esm-es5/models/process-param.js +0 -14
  193. package/dist/esm-es5/models/quality-config.js +0 -14
  194. package/dist/esm-es5/models/quality-detail.js +0 -14
  195. package/dist/esm-es5/models/quality-details-groups.js +0 -14
  196. package/dist/esm-es5/models/quality-request.js +0 -14
  197. package/dist/esm-es5/models/recognize-image-all-of.js +0 -14
  198. package/dist/esm-es5/models/recognize-image.js +0 -14
  199. package/dist/esm-es5/models/resize-options.js +0 -14
  200. package/dist/esm-es5/models/search-bad-params.js +0 -14
  201. package/dist/esm-es5/models/search-detection.js +0 -14
  202. package/dist/esm-es5/models/search-parameters-create-person.js +0 -14
  203. package/dist/esm-es5/models/search-parameters.js +0 -14
  204. package/dist/esm-es5/models/search-person-all-of.js +0 -14
  205. package/dist/esm-es5/models/search-person.js +0 -14
  206. package/dist/esm-es5/models/search-request-all-of.js +0 -14
  207. package/dist/esm-es5/models/search-request.js +0 -14
  208. package/dist/esm-es5/models/search-result-all-of.js +0 -14
  209. package/dist/esm-es5/models/search-result.js +0 -14
  210. package/dist/esm-es5/models/transaction-info.js +0 -14
  211. package/dist/esm-es5/models/update-group.js +0 -14
  212. package/setup.sh +0 -7
  213. package/src/api/diagnostics-api.ts +0 -126
  214. package/src/api/group-api.ts +0 -648
  215. package/src/api/liveness-api.ts +0 -268
  216. package/src/api/liveness20-api.ts +0 -130
  217. package/src/api/matching-api.ts +0 -301
  218. package/src/api/person-api.ts +0 -821
  219. package/src/api/search-api.ts +0 -143
  220. package/src/api.ts +0 -23
  221. package/src/base.ts +0 -71
  222. package/src/common.ts +0 -138
  223. package/src/configuration.ts +0 -101
  224. package/src/ext/face-sdk.ts +0 -22
  225. package/src/ext/group-api.ts +0 -34
  226. package/src/ext/index.ts +0 -1
  227. package/src/ext/matching-api.ts +0 -28
  228. package/src/ext/person-api.ts +0 -48
  229. package/src/ext/search-api.ts +0 -14
  230. package/src/index.ts +0 -18
  231. package/src/models/crop.ts +0 -49
  232. package/src/models/detect-request-attributes.ts +0 -31
  233. package/src/models/detect-request.ts +0 -57
  234. package/src/models/detect-response-all-of.ts +0 -31
  235. package/src/models/detect-response.ts +0 -27
  236. package/src/models/detect-result.ts +0 -56
  237. package/src/models/detection-face.ts +0 -54
  238. package/src/models/detection-quality.ts +0 -57
  239. package/src/models/detection.ts +0 -62
  240. package/src/models/face-align-type-quality.ts +0 -34
  241. package/src/models/face-attribute.ts +0 -42
  242. package/src/models/face-image-quality-align-type.ts +0 -34
  243. package/src/models/face-image-quality-groups-strings.ts +0 -37
  244. package/src/models/face-image-quality-groups.ts +0 -37
  245. package/src/models/face-image-quality-status.ts +0 -32
  246. package/src/models/face-quality-config-name.ts +0 -77
  247. package/src/models/face-quality-scenarios.ts +0 -37
  248. package/src/models/face-quality-status.ts +0 -32
  249. package/src/models/face-recognition-result-code.ts +0 -13
  250. package/src/models/face-sdkresult-code.ts +0 -68
  251. package/src/models/face-sdkresult.ts +0 -31
  252. package/src/models/faces-response-all-of.ts +0 -37
  253. package/src/models/faces-response.ts +0 -26
  254. package/src/models/group-all-of.ts +0 -36
  255. package/src/models/group-page-all-of.ts +0 -31
  256. package/src/models/group-page.ts +0 -26
  257. package/src/models/group-to-create.ts +0 -42
  258. package/src/models/group.ts +0 -25
  259. package/src/models/image-data.ts +0 -2
  260. package/src/models/image-fields-image.ts +0 -50
  261. package/src/models/image-fields.ts +0 -62
  262. package/src/models/image-page-all-of.ts +0 -31
  263. package/src/models/image-page.ts +0 -26
  264. package/src/models/image-source.ts +0 -35
  265. package/src/models/image.ts +0 -66
  266. package/src/models/index.ts +0 -72
  267. package/src/models/liveness-transaction.ts +0 -78
  268. package/src/models/match-and-search-request-all-of-images.ts +0 -38
  269. package/src/models/match-and-search-request-all-of.ts +0 -37
  270. package/src/models/match-and-search-request.ts +0 -27
  271. package/src/models/match-and-search-response-all-of-detections.ts +0 -44
  272. package/src/models/match-and-search-response-all-of.ts +0 -50
  273. package/src/models/match-and-search-response.ts +0 -28
  274. package/src/models/match-image-detection.ts +0 -44
  275. package/src/models/match-image-result.ts +0 -73
  276. package/src/models/match-image.ts +0 -50
  277. package/src/models/match-request-output-image-params-crop.ts +0 -59
  278. package/src/models/match-request-output-image-params.ts +0 -37
  279. package/src/models/match-request.ts +0 -43
  280. package/src/models/match-response-all-of.ts +0 -38
  281. package/src/models/match-response.ts +0 -28
  282. package/src/models/operation-log.ts +0 -42
  283. package/src/models/output-image-params.ts +0 -37
  284. package/src/models/page.ts +0 -36
  285. package/src/models/person-all-of.ts +0 -48
  286. package/src/models/person-created-response.ts +0 -43
  287. package/src/models/person-fields.ts +0 -48
  288. package/src/models/person-with-images-all-of.ts +0 -31
  289. package/src/models/person-with-images.ts +0 -26
  290. package/src/models/person.ts +0 -26
  291. package/src/models/persons-page-all-of.ts +0 -31
  292. package/src/models/persons-page.ts +0 -26
  293. package/src/models/process-param.ts +0 -57
  294. package/src/models/quality-config.ts +0 -37
  295. package/src/models/quality-detail.ts +0 -57
  296. package/src/models/quality-details-groups.ts +0 -50
  297. package/src/models/quality-request.ts +0 -37
  298. package/src/models/recognize-image-all-of.ts +0 -36
  299. package/src/models/recognize-image.ts +0 -25
  300. package/src/models/resize-options.ts +0 -42
  301. package/src/models/search-bad-params.ts +0 -42
  302. package/src/models/search-detection.ts +0 -90
  303. package/src/models/search-parameters-create-person.ts +0 -36
  304. package/src/models/search-parameters.ts +0 -37
  305. package/src/models/search-person-all-of.ts +0 -38
  306. package/src/models/search-person.ts +0 -27
  307. package/src/models/search-request-all-of.ts +0 -42
  308. package/src/models/search-request.ts +0 -28
  309. package/src/models/search-result-all-of.ts +0 -30
  310. package/src/models/search-result.ts +0 -37
  311. package/src/models/transaction-info.ts +0 -78
  312. package/src/models/update-group.ts +0 -36
  313. package/update-models.sh +0 -7
@@ -1,143 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Regula FaceSDK Web API
5
- * Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
6
- *
7
- * The version of the OpenAPI document: 5.2.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { PersonCreatedResponse } from '../models';
25
- // @ts-ignore
26
- import { SearchBadParams } from '../models';
27
- // @ts-ignore
28
- import { SearchRequest } from '../models';
29
- // @ts-ignore
30
- import { SearchResult } from '../models';
31
- /**
32
- * SearchApi - axios parameter creator
33
- * @export
34
- */
35
- export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- *
39
- * @summary Find person by image in groups
40
- * @param {SearchRequest} searchRequest
41
- * @param {string} [xRequestID] Request header label.
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- search: async (searchRequest: SearchRequest, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'searchRequest' is not null or undefined
47
- assertParamExists('search', 'searchRequest', searchRequest)
48
- const localVarPath = `/api/search`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
- let baseOptions;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- }
55
-
56
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57
- const localVarHeaderParameter = {} as any;
58
- const localVarQueryParameter = {} as any;
59
-
60
- if (xRequestID !== undefined && xRequestID !== null) {
61
- localVarHeaderParameter['X-RequestID'] = String(xRequestID);
62
- }
63
-
64
-
65
-
66
- localVarHeaderParameter['Content-Type'] = 'application/json';
67
-
68
- setSearchParams(localVarUrlObj, localVarQueryParameter);
69
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71
- localVarRequestOptions.data = serializeDataIfNeeded(searchRequest, localVarRequestOptions, configuration)
72
-
73
- return {
74
- url: toPathString(localVarUrlObj),
75
- options: localVarRequestOptions,
76
- };
77
- },
78
- }
79
- };
80
-
81
- /**
82
- * SearchApi - functional programming interface
83
- * @export
84
- */
85
- export const SearchApiFp = function(configuration?: Configuration) {
86
- const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
87
- return {
88
- /**
89
- *
90
- * @summary Find person by image in groups
91
- * @param {SearchRequest} searchRequest
92
- * @param {string} [xRequestID] Request header label.
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- async search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResult>> {
97
- const localVarAxiosArgs = await localVarAxiosParamCreator.search(searchRequest, xRequestID, options);
98
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
99
- },
100
- }
101
- };
102
-
103
- /**
104
- * SearchApi - factory interface
105
- * @export
106
- */
107
- export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
108
- const localVarFp = SearchApiFp(configuration)
109
- return {
110
- /**
111
- *
112
- * @summary Find person by image in groups
113
- * @param {SearchRequest} searchRequest
114
- * @param {string} [xRequestID] Request header label.
115
- * @param {*} [options] Override http request option.
116
- * @throws {RequiredError}
117
- */
118
- search(searchRequest: SearchRequest, xRequestID?: string, options?: any): AxiosPromise<SearchResult> {
119
- return localVarFp.search(searchRequest, xRequestID, options).then((request) => request(axios, basePath));
120
- },
121
- };
122
- };
123
-
124
- /**
125
- * SearchApi - object-oriented interface
126
- * @export
127
- * @class SearchApi
128
- * @extends {BaseAPI}
129
- */
130
- export class SearchApi extends BaseAPI {
131
- /**
132
- *
133
- * @summary Find person by image in groups
134
- * @param {SearchRequest} searchRequest
135
- * @param {string} [xRequestID] Request header label.
136
- * @param {*} [options] Override http request option.
137
- * @throws {RequiredError}
138
- * @memberof SearchApi
139
- */
140
- public search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig) {
141
- return SearchApiFp(this.configuration).search(searchRequest, xRequestID, options).then((request) => request(this.axios, this.basePath));
142
- }
143
- }
package/src/api.ts DELETED
@@ -1,23 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Regula FaceSDK Web API
5
- * Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
6
- *
7
- * The version of the OpenAPI document: 5.2.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
-
17
- export * from './api/diagnostics-api';
18
- export * from './api/group-api';
19
- export * from './api/liveness20-api';
20
- export * from './api/matching-api';
21
- export * from './api/person-api';
22
- export * from './api/search-api';
23
-
package/src/base.ts DELETED
@@ -1,71 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Regula FaceSDK Web API
5
- * Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
6
- *
7
- * The version of the OpenAPI document: 5.2.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import { Configuration } from "./configuration";
17
- // Some imports not used depending on template conditions
18
- // @ts-ignore
19
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
20
-
21
- export const BASE_PATH = "http://localhost:41101".replace(/\/+$/, "");
22
-
23
- /**
24
- *
25
- * @export
26
- */
27
- export const COLLECTION_FORMATS = {
28
- csv: ",",
29
- ssv: " ",
30
- tsv: "\t",
31
- pipes: "|",
32
- };
33
-
34
- /**
35
- *
36
- * @export
37
- * @interface RequestArgs
38
- */
39
- export interface RequestArgs {
40
- url: string;
41
- options: AxiosRequestConfig;
42
- }
43
-
44
- /**
45
- *
46
- * @export
47
- * @class BaseAPI
48
- */
49
- export class BaseAPI {
50
- protected configuration: Configuration | undefined;
51
-
52
- constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
53
- if (configuration) {
54
- this.configuration = configuration;
55
- this.basePath = configuration.basePath || this.basePath;
56
- }
57
- }
58
- };
59
-
60
- /**
61
- *
62
- * @export
63
- * @class RequiredError
64
- * @extends {Error}
65
- */
66
- export class RequiredError extends Error {
67
- name: "RequiredError" = "RequiredError";
68
- constructor(public field: string, msg?: string) {
69
- super(msg);
70
- }
71
- }
package/src/common.ts DELETED
@@ -1,138 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Regula FaceSDK Web API
5
- * Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
6
- *
7
- * The version of the OpenAPI document: 5.2.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import { Configuration } from "./configuration";
17
- import { RequiredError, RequestArgs } from "./base";
18
- import { AxiosInstance, AxiosResponse } from 'axios';
19
-
20
- /**
21
- *
22
- * @export
23
- */
24
- export const DUMMY_BASE_URL = 'https://example.com'
25
-
26
- /**
27
- *
28
- * @throws {RequiredError}
29
- * @export
30
- */
31
- export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
32
- if (paramValue === null || paramValue === undefined) {
33
- throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
34
- }
35
- }
36
-
37
- /**
38
- *
39
- * @export
40
- */
41
- export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
42
- if (configuration && configuration.apiKey) {
43
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
44
- ? await configuration.apiKey(keyParamName)
45
- : await configuration.apiKey;
46
- object[keyParamName] = localVarApiKeyValue;
47
- }
48
- }
49
-
50
- /**
51
- *
52
- * @export
53
- */
54
- export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
55
- if (configuration && (configuration.username || configuration.password)) {
56
- object["auth"] = { username: configuration.username, password: configuration.password };
57
- }
58
- }
59
-
60
- /**
61
- *
62
- * @export
63
- */
64
- export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
65
- if (configuration && configuration.accessToken) {
66
- const accessToken = typeof configuration.accessToken === 'function'
67
- ? await configuration.accessToken()
68
- : await configuration.accessToken;
69
- object["Authorization"] = "Bearer " + accessToken;
70
- }
71
- }
72
-
73
- /**
74
- *
75
- * @export
76
- */
77
- export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
78
- if (configuration && configuration.accessToken) {
79
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
80
- ? await configuration.accessToken(name, scopes)
81
- : await configuration.accessToken;
82
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
83
- }
84
- }
85
-
86
- /**
87
- *
88
- * @export
89
- */
90
- export const setSearchParams = function (url: URL, ...objects: any[]) {
91
- const searchParams = new URLSearchParams(url.search);
92
- for (const object of objects) {
93
- for (const key in object) {
94
- if (Array.isArray(object[key])) {
95
- searchParams.delete(key);
96
- for (const item of object[key]) {
97
- searchParams.append(key, item);
98
- }
99
- } else {
100
- searchParams.set(key, object[key]);
101
- }
102
- }
103
- }
104
- url.search = searchParams.toString();
105
- }
106
-
107
- /**
108
- *
109
- * @export
110
- */
111
- export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
112
- const nonString = typeof value !== 'string';
113
- const needsSerialization = nonString && configuration && configuration.isJsonMime
114
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
115
- : nonString;
116
- return needsSerialization
117
- ? JSON.stringify(value !== undefined ? value : {})
118
- : (value || "");
119
- }
120
-
121
- /**
122
- *
123
- * @export
124
- */
125
- export const toPathString = function (url: URL) {
126
- return url.pathname + url.search + url.hash
127
- }
128
-
129
- /**
130
- *
131
- * @export
132
- */
133
- export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
134
- return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
135
- const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
136
- return axios.request<T, R>(axiosRequestArgs);
137
- };
138
- }
@@ -1,101 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Regula FaceSDK Web API
5
- * Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
6
- *
7
- * The version of the OpenAPI document: 5.2.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- export interface ConfigurationParameters {
17
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
- username?: string;
19
- password?: string;
20
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
- basePath?: string;
22
- baseOptions?: any;
23
- formDataCtor?: new () => any;
24
- }
25
-
26
- export class Configuration {
27
- /**
28
- * parameter for apiKey security
29
- * @param name security name
30
- * @memberof Configuration
31
- */
32
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
33
- /**
34
- * parameter for basic security
35
- *
36
- * @type {string}
37
- * @memberof Configuration
38
- */
39
- username?: string;
40
- /**
41
- * parameter for basic security
42
- *
43
- * @type {string}
44
- * @memberof Configuration
45
- */
46
- password?: string;
47
- /**
48
- * parameter for oauth2 security
49
- * @param name security name
50
- * @param scopes oauth2 scope
51
- * @memberof Configuration
52
- */
53
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
- /**
55
- * override base path
56
- *
57
- * @type {string}
58
- * @memberof Configuration
59
- */
60
- basePath?: string;
61
- /**
62
- * base options for axios calls
63
- *
64
- * @type {any}
65
- * @memberof Configuration
66
- */
67
- baseOptions?: any;
68
- /**
69
- * The FormData constructor that will be used to create multipart form data
70
- * requests. You can inject this here so that execution environments that
71
- * do not support the FormData class can still run the generated client.
72
- *
73
- * @type {new () => FormData}
74
- */
75
- formDataCtor?: new () => any;
76
-
77
- constructor(param: ConfigurationParameters = {}) {
78
- this.apiKey = param.apiKey;
79
- this.username = param.username;
80
- this.password = param.password;
81
- this.accessToken = param.accessToken;
82
- this.basePath = param.basePath;
83
- this.baseOptions = param.baseOptions;
84
- this.formDataCtor = param.formDataCtor;
85
- }
86
-
87
- /**
88
- * Check if the given MIME is a JSON MIME.
89
- * JSON MIME examples:
90
- * application/json
91
- * application/json; charset=UTF8
92
- * APPLICATION/JSON
93
- * application/vnd.company+json
94
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
95
- * @return True if the given MIME is JSON, false otherwise.
96
- */
97
- public isJsonMime(mime: string): boolean {
98
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
99
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
100
- }
101
- }
@@ -1,22 +0,0 @@
1
- import {BASE_PATH} from "../base.js";
2
- import {Configuration} from "../configuration.js";
3
- import globalAxios, {AxiosInstance} from "axios";
4
- import {MatchingApi} from "./matching-api.js";
5
- import {GroupApi} from "./group-api";
6
- import {PersonApi} from "./person-api";
7
- import {SearchApi} from "./search-api";
8
-
9
- export class FaceSdk {
10
- matchingApi: MatchingApi;
11
- groupApi: GroupApi;
12
- personApi: PersonApi;
13
- searchApi: SearchApi;
14
-
15
-
16
- constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
17
- this.matchingApi = new MatchingApi(configuration, basePath, axios)
18
- this.groupApi = new GroupApi(configuration, basePath, axios)
19
- this.personApi = new PersonApi(configuration, basePath, axios)
20
- this.searchApi = new SearchApi(configuration, basePath, axios)
21
- }
22
- }
@@ -1,34 +0,0 @@
1
- import {GroupApi as GenGroupApi} from "../api/group-api";
2
- import {GroupToCreate, UpdateGroup} from "../models";
3
- import {AxiosRequestConfig} from "axios";
4
-
5
- export class GroupApi extends GenGroupApi {
6
- createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): any {
7
- return super.createGroup(groupToCreate, xRequestID, options).then(r => r.data);
8
- }
9
-
10
- deleteGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
11
- return super.deleteGroup(groupId, xRequestID, options).then(r => r.data);
12
- }
13
-
14
- getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): any {
15
- return super.getAllGroups(page, size, xRequestID, options).then(r => r.data);
16
- }
17
-
18
- getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
19
- return super.getAllPersonsByGroupId(page, size, groupId, xRequestID, options).then(r => r.data);
20
- }
21
-
22
- getGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
23
- return super.getGroup(groupId, xRequestID, options).then(r => r.data);
24
- }
25
-
26
- updateGroup(groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): any {
27
- return super.updateGroup(groupId, groupToCreate, xRequestID, options).then(r => r.data);
28
- }
29
-
30
- updatePersonsInGroup(groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options?: AxiosRequestConfig): any {
31
- return super.updatePersonsInGroup(groupId, updateGroup, xRequestID, options).then(r => r.data);
32
- }
33
-
34
- }
package/src/ext/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './face-sdk.js';
@@ -1,28 +0,0 @@
1
- import {MatchingApi as GenMatchingApi} from "../api/matching-api.js";
2
- import {MatchRequest, DetectRequest, ImageSource} from "../models/index.js";
3
-
4
- // @ts-ignore
5
- import * as converter from "base64-arraybuffer";
6
-
7
- export class MatchingApi extends GenMatchingApi {
8
-
9
- match(compareRequest: MatchRequest, xRequestID: string, options?: any): any {
10
- for (const image of compareRequest.images) {
11
- if (!image.type) {
12
- image.type = ImageSource.LIVE
13
- }
14
- if (typeof image.data !== "string") {
15
- image.data = converter.encode(image.data)
16
- }
17
- }
18
-
19
- return super.match(compareRequest, xRequestID, options).then(r => r.data);
20
- }
21
-
22
- detect(detectRequest: DetectRequest, xRequestID? : string, options?: any): any {
23
- if (detectRequest.image && typeof detectRequest.image !== "string") {
24
- detectRequest.image = converter.encode(detectRequest.image)
25
- }
26
- return super.detect(detectRequest, xRequestID, options).then(r => r.data)
27
- }
28
- }
@@ -1,48 +0,0 @@
1
- import {PersonApi as GenPersonApi} from "../api/person-api";
2
-
3
- // @ts-ignore
4
- import * as converter from "base64-arraybuffer";
5
- import {ImageFields, PersonFields} from "../models";
6
- import {AxiosRequestConfig} from "axios";
7
-
8
- export class PersonApi extends GenPersonApi {
9
- createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): any {
10
- return super.createPerson(personFields, xRequestID, options).then(r => r.data);
11
- }
12
-
13
- addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): any {
14
- if (imageFields.image.content && typeof imageFields.image.content !== "string") {
15
- imageFields.image.content = converter.encode(imageFields.image.content)
16
- }
17
- return super.addImageToPerson(personId, imageFields, xRequestID, options).then(r => r.data);
18
- }
19
-
20
- deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
21
- return super.deleteImageOfPerson(imageId, personId, xRequestID, options).then(r => r.data);
22
- }
23
-
24
- deletePerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
25
- return super.deletePerson(personId, xRequestID, options).then(r => r.data);
26
- }
27
-
28
- getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
29
- return super.getAllGroupsByPersonId(page, size, personId, xRequestID, options).then(r => r.data);
30
- }
31
-
32
- getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
33
- return super.getAllImagesByPersonId(page, size, personId, xRequestID, options).then(r => r.data);
34
- }
35
-
36
-
37
- getImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
38
- return super.getImageOfPerson(imageId, personId, xRequestID, options).then(r => r.data);
39
- }
40
-
41
- getPerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): any {
42
- return super.getPerson(personId, xRequestID, options).then(r => r.data);
43
- }
44
-
45
- updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): any {
46
- return super.updatePerson(personId, personFields, xRequestID, options).then(r => r.data);
47
- }
48
- }
@@ -1,14 +0,0 @@
1
- import {SearchApi as GenSearchApi} from "../api/search-api";
2
- import * as converter from "base64-arraybuffer";
3
- import {SearchRequest} from "../models";
4
- import {AxiosRequestConfig} from "axios";
5
-
6
-
7
- export class SearchApi extends GenSearchApi {
8
- search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): any {
9
- if (searchRequest.image.content && typeof searchRequest.image.content !== "string") {
10
- searchRequest.image.content = converter.encode(searchRequest.image.content)
11
- }
12
- return super.search(searchRequest, xRequestID, options).then(r => r.data);
13
- }
14
- }
package/src/index.ts DELETED
@@ -1,18 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Regula FaceSDK Web API
5
- * Regula FaceSDK Web API
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- export * from './ext/index.js';
17
- export * from "./configuration.js";
18
- export * from "./models/index.js";