@fill-easy/api 1.0.29 → 1.0.30

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 (2) hide show
  1. package/dist/openapi.d.ts +240 -253
  2. package/package.json +1 -1
package/dist/openapi.d.ts CHANGED
@@ -649,6 +649,99 @@ export interface paths {
649
649
  patch?: never;
650
650
  trace?: never;
651
651
  };
652
+ "/uaepass/request/auth": {
653
+ parameters: {
654
+ query?: never;
655
+ header?: never;
656
+ path?: never;
657
+ cookie?: never;
658
+ };
659
+ get?: never;
660
+ put?: never;
661
+ /**
662
+ * Authentication
663
+ * @description Retrieves user identity details following a successful UAE Pass login.
664
+ */
665
+ post: operations["uaepassAuth"];
666
+ delete?: never;
667
+ options?: never;
668
+ head?: never;
669
+ patch?: never;
670
+ trace?: never;
671
+ };
672
+ "/uaepass/poll": {
673
+ parameters: {
674
+ query?: never;
675
+ header?: never;
676
+ path?: never;
677
+ cookie?: never;
678
+ };
679
+ get?: never;
680
+ put?: never;
681
+ /**
682
+ * Poll Data
683
+ * @description Short poll this endpoint, passing in the `token` (from endpoints in `Request Data` folder) to obtain the results.
684
+ *
685
+ * For authentication, this includes user data. For signing, this provides a link by which the signed document can be obtained.
686
+ *
687
+ * The response's `token` is a JWT or JWE depending if there's sensitive personal data. You should handle them like so:
688
+ *
689
+ * - `JWT` verify\* token
690
+ *
691
+ * - `JWE` decrypt using the private keys that Fill Easy has previously provided.
692
+ *
693
+ *
694
+ * Please note that the data result is returned only once and is deleted immediately.
695
+ *
696
+ * \*you can try using online decoder like [https://jwt.io/](https://jwt.io/)
697
+ *
698
+ * all responses are `JWE` unless noted otherwise.
699
+ */
700
+ post: operations["uaepassPoll"];
701
+ delete?: never;
702
+ options?: never;
703
+ head?: never;
704
+ patch?: never;
705
+ trace?: never;
706
+ };
707
+ "/uaepass/callback": {
708
+ parameters: {
709
+ query?: never;
710
+ header?: never;
711
+ path?: never;
712
+ cookie?: never;
713
+ };
714
+ /**
715
+ * Callback
716
+ * @description UAE Pass will redirect to this endpoint after user authorization.
717
+ * This endpoint then redirects the user again to the original `redirect` URI provided in the `/uaepass/request/auth` request, appending the authorization `code` and `state` as query parameters.
718
+ */
719
+ get: operations["uaepassCallback"];
720
+ put?: never;
721
+ post?: never;
722
+ delete?: never;
723
+ options?: never;
724
+ head?: never;
725
+ patch?: never;
726
+ trace?: never;
727
+ };
728
+ "/uaepass/logout": {
729
+ parameters: {
730
+ query?: never;
731
+ header?: never;
732
+ path?: never;
733
+ cookie?: never;
734
+ };
735
+ get?: never;
736
+ put?: never;
737
+ /** UAEPass Logout */
738
+ post: operations["uaepassLogout"];
739
+ delete?: never;
740
+ options?: never;
741
+ head?: never;
742
+ patch?: never;
743
+ trace?: never;
744
+ };
652
745
  "/ocr/request": {
653
746
  parameters: {
654
747
  query?: never;
@@ -878,30 +971,15 @@ export interface paths {
878
971
  put?: never;
879
972
  /**
880
973
  * Request
881
- * @description This endpoint may retrieve the company JSON and document via two methods:
882
- *
883
- * For a full list of Country Coverage, please check out /readme .
884
- *
885
- * #### Automated retrieval using Company ID for supported countries
886
- *
887
- * If the country supplied in `countryCode` is automated according to Country Coverage table,
888
- * and the supplied `companyId` is valid, the system will automatically fetch the document.
974
+ * @description Initiate a company report request. Returns a JWT token for use with `/cra/poll`.
889
975
  *
890
- * In order to ensure a valid `companyId`, please validate using `/cra/{countryCode}/search/companies`.
976
+ * **Required:** `countryCode` (ISO 3166 alpha-2)
891
977
  *
892
- * In this case, `/cra/poll` will resolve in around 5 minutes.
978
+ * **Recommended:** `companyId` from `/cra/{countryCode}/search/companies` for faster automated processing.
893
979
  *
894
- * The `/cra/{countryCode}/search/companies` endpoint will not return a
895
- * companyId for certain countries (empty string). In that case please
896
- * refer to the information in the section below.
980
+ * **Fallback:** Provide `companyName` if `companyId` is unavailable — request will be processed manually.
897
981
  *
898
- * #### Manual request for unsupported countries or missing Company ID
899
- *
900
- * In case of unsupported countries or missing `companyId`, Fill Easy will manually process the request.
901
- * Retrieving this information may take longer (up to several days).
902
- *
903
- * In any case, the endpoint returns a JWT token that should be used with the
904
- * `/cra/poll` endpoint to retrieve the document when ready.
982
+ * **Document Request:** Provide `documentId` from `/cra/{countryCode}/search/documents` to request specific document.
905
983
  */
906
984
  post: operations["craRequest"];
907
985
  delete?: never;
@@ -1048,87 +1126,13 @@ export interface paths {
1048
1126
  cookie?: never;
1049
1127
  };
1050
1128
  /**
1051
- * Get CRA Country Information
1052
- * @description Returns metadata and a list of all countries supported by the CRA service,
1129
+ * Info
1130
+ * @description Returns metadata and a list of all countries supported by the CorpVerify service,
1053
1131
  * including their automation status, available search capabilities, and report contents.
1054
- */
1055
- get: operations["craInfo"];
1056
- put?: never;
1057
- post?: never;
1058
- delete?: never;
1059
- options?: never;
1060
- head?: never;
1061
- patch?: never;
1062
- trace?: never;
1063
- };
1064
- "/uaepass/request/auth": {
1065
- parameters: {
1066
- query?: never;
1067
- header?: never;
1068
- path?: never;
1069
- cookie?: never;
1070
- };
1071
- get?: never;
1072
- put?: never;
1073
- /**
1074
- * Authentication
1075
- * @description Retrieves user identity details following a successful UAE Pass login.
1076
- */
1077
- post: operations["uaepassAuth"];
1078
- delete?: never;
1079
- options?: never;
1080
- head?: never;
1081
- patch?: never;
1082
- trace?: never;
1083
- };
1084
- "/uaepass/poll": {
1085
- parameters: {
1086
- query?: never;
1087
- header?: never;
1088
- path?: never;
1089
- cookie?: never;
1090
- };
1091
- get?: never;
1092
- put?: never;
1093
- /**
1094
- * Poll Data
1095
- * @description Short poll this endpoint, passing in the `token` (from endpoints in `Request Data` folder) to obtain the results.
1096
- *
1097
- * For authentication, this includes user data. For signing, this provides a link by which the signed document can be obtained.
1098
- *
1099
- * The response's `token` is a JWT or JWE depending if there's sensitive personal data. You should handle them like so:
1100
- *
1101
- * - `JWT` verify\* token
1102
1132
  *
1103
- * - `JWE` decrypt using the private keys that Fill Easy has previously provided.
1104
- *
1105
- *
1106
- * Please note that the data result is returned only once and is deleted immediately.
1107
- *
1108
- * \*you can try using online decoder like [https://jwt.io/](https://jwt.io/)
1109
- *
1110
- * all responses are `JWE` unless noted otherwise.
1133
+ * > For an up-to-date version of the same data, please view the [CorpVerify Country Coverage table](countries).
1111
1134
  */
1112
- post: operations["uaepassPoll"];
1113
- delete?: never;
1114
- options?: never;
1115
- head?: never;
1116
- patch?: never;
1117
- trace?: never;
1118
- };
1119
- "/uaepass/callback": {
1120
- parameters: {
1121
- query?: never;
1122
- header?: never;
1123
- path?: never;
1124
- cookie?: never;
1125
- };
1126
- /**
1127
- * Callback
1128
- * @description UAE Pass will redirect to this endpoint after user authorization.
1129
- * This endpoint then redirects the user again to the original `redirect` URI provided in the `/uaepass/request/auth` request, appending the authorization `code` and `state` as query parameters.
1130
- */
1131
- get: operations["uaepassCallback"];
1135
+ get: operations["craInfo"];
1132
1136
  put?: never;
1133
1137
  post?: never;
1134
1138
  delete?: never;
@@ -1137,23 +1141,6 @@ export interface paths {
1137
1141
  patch?: never;
1138
1142
  trace?: never;
1139
1143
  };
1140
- "/uaepass/logout": {
1141
- parameters: {
1142
- query?: never;
1143
- header?: never;
1144
- path?: never;
1145
- cookie?: never;
1146
- };
1147
- get?: never;
1148
- put?: never;
1149
- /** UAEPass Logout */
1150
- post: operations["uaepassLogout"];
1151
- delete?: never;
1152
- options?: never;
1153
- head?: never;
1154
- patch?: never;
1155
- trace?: never;
1156
- };
1157
1144
  "/lra/request": {
1158
1145
  parameters: {
1159
1146
  query?: never;
@@ -2446,6 +2433,143 @@ export interface operations {
2446
2433
  };
2447
2434
  };
2448
2435
  };
2436
+ uaepassAuth: {
2437
+ parameters: {
2438
+ query?: never;
2439
+ header?: never;
2440
+ path?: never;
2441
+ cookie?: never;
2442
+ };
2443
+ requestBody: {
2444
+ content: {
2445
+ "application/json": {
2446
+ redirect: components["schemas"]["RedirectUri"];
2447
+ /**
2448
+ * @description List of values, separated by spaces, that represent the scope of the authorization that the application wants to obtain.
2449
+ * It queries the scopes required for accessing the resources or services in question.
2450
+ * Available scopes: sub, fullnameAR, gender, mobile, lastnameEN, fullnameEN, uuid, lastnameAR, idn, nationalityEN, firstnameEN, userType, nationalityAR, firstnameAR, email.
2451
+ * (To be shared by UAEPASS Team if its value is other than specified in sample above)
2452
+ * @example sub fullnameEN email mobile
2453
+ */
2454
+ scope?: string;
2455
+ /**
2456
+ * @description UAE Pass display language, case sensitive
2457
+ * @example en
2458
+ * @enum {string}
2459
+ */
2460
+ lang?: "en" | "ar";
2461
+ /**
2462
+ * @description Platform source for the authentication request
2463
+ * @example PC_Browser
2464
+ * @enum {string}
2465
+ */
2466
+ source: "PC_Browser" | "android" | "iOS" | "Mobile_Browser";
2467
+ };
2468
+ };
2469
+ };
2470
+ responses: {
2471
+ /** @description Success */
2472
+ 200: {
2473
+ headers: {
2474
+ [name: string]: unknown;
2475
+ };
2476
+ content: {
2477
+ "application/json": {
2478
+ /** @description JWT token for polling authentication status */
2479
+ token: string;
2480
+ /**
2481
+ * Format: uri
2482
+ * @description UAE Pass authorization URL to redirect user to
2483
+ */
2484
+ oAuthUrl: string;
2485
+ };
2486
+ };
2487
+ };
2488
+ 400: components["responses"]["BadRequest"];
2489
+ 500: components["responses"]["InternalServerError"];
2490
+ };
2491
+ };
2492
+ uaepassPoll: {
2493
+ parameters: {
2494
+ query?: never;
2495
+ header?: never;
2496
+ path?: never;
2497
+ cookie?: never;
2498
+ };
2499
+ requestBody: {
2500
+ content: {
2501
+ "application/json": {
2502
+ token: components["schemas"]["Token"];
2503
+ };
2504
+ };
2505
+ };
2506
+ responses: {
2507
+ /** @description Success */
2508
+ 200: {
2509
+ headers: {
2510
+ [name: string]: unknown;
2511
+ };
2512
+ content: {
2513
+ "application/json": {
2514
+ message?: string;
2515
+ token?: components["schemas"]["Token"];
2516
+ };
2517
+ };
2518
+ };
2519
+ };
2520
+ };
2521
+ uaepassCallback: {
2522
+ parameters: {
2523
+ query?: never;
2524
+ header?: never;
2525
+ path?: never;
2526
+ cookie?: never;
2527
+ };
2528
+ requestBody?: never;
2529
+ responses: {
2530
+ /** @description Success */
2531
+ 200: {
2532
+ headers: {
2533
+ [name: string]: unknown;
2534
+ };
2535
+ content?: never;
2536
+ };
2537
+ };
2538
+ };
2539
+ uaepassLogout: {
2540
+ parameters: {
2541
+ query?: never;
2542
+ header?: never;
2543
+ path?: never;
2544
+ cookie?: never;
2545
+ };
2546
+ requestBody: {
2547
+ content: {
2548
+ "application/json": {
2549
+ redirect: components["schemas"]["RedirectUri"];
2550
+ };
2551
+ };
2552
+ };
2553
+ responses: {
2554
+ /** @description Success */
2555
+ 200: {
2556
+ headers: {
2557
+ [name: string]: unknown;
2558
+ };
2559
+ content: {
2560
+ "application/json": {
2561
+ /**
2562
+ * Format: uri
2563
+ * @description UAE Pass logout URL to redirect user to
2564
+ */
2565
+ logoutUrl: string;
2566
+ };
2567
+ };
2568
+ };
2569
+ 400: components["responses"]["BadRequest"];
2570
+ 500: components["responses"]["InternalServerError"];
2571
+ };
2572
+ };
2449
2573
  request1: {
2450
2574
  parameters: {
2451
2575
  query?: never;
@@ -3718,7 +3842,7 @@ export interface operations {
3718
3842
  };
3719
3843
  requestBody?: never;
3720
3844
  responses: {
3721
- /** @description Successfully retrieved CRA country information */
3845
+ /** @description Successfully retrieved country information */
3722
3846
  200: {
3723
3847
  headers: {
3724
3848
  [name: string]: unknown;
@@ -3755,143 +3879,6 @@ export interface operations {
3755
3879
  };
3756
3880
  };
3757
3881
  };
3758
- uaepassAuth: {
3759
- parameters: {
3760
- query?: never;
3761
- header?: never;
3762
- path?: never;
3763
- cookie?: never;
3764
- };
3765
- requestBody: {
3766
- content: {
3767
- "application/json": {
3768
- redirect: components["schemas"]["RedirectUri"];
3769
- /**
3770
- * @description List of values, separated by spaces, that represent the scope of the authorization that the application wants to obtain.
3771
- * It queries the scopes required for accessing the resources or services in question.
3772
- * Available scopes: sub, fullnameAR, gender, mobile, lastnameEN, fullnameEN, uuid, lastnameAR, idn, nationalityEN, firstnameEN, userType, nationalityAR, firstnameAR, email.
3773
- * (To be shared by UAEPASS Team if its value is other than specified in sample above)
3774
- * @example sub fullnameEN email mobile
3775
- */
3776
- scope?: string;
3777
- /**
3778
- * @description UAE Pass display language, case sensitive
3779
- * @example en
3780
- * @enum {string}
3781
- */
3782
- lang?: "en" | "ar";
3783
- /**
3784
- * @description Platform source for the authentication request
3785
- * @example PC_Browser
3786
- * @enum {string}
3787
- */
3788
- source: "PC_Browser" | "android" | "iOS" | "Mobile_Browser";
3789
- };
3790
- };
3791
- };
3792
- responses: {
3793
- /** @description Success */
3794
- 200: {
3795
- headers: {
3796
- [name: string]: unknown;
3797
- };
3798
- content: {
3799
- "application/json": {
3800
- /** @description JWT token for polling authentication status */
3801
- token: string;
3802
- /**
3803
- * Format: uri
3804
- * @description UAE Pass authorization URL to redirect user to
3805
- */
3806
- oAuthUrl: string;
3807
- };
3808
- };
3809
- };
3810
- 400: components["responses"]["BadRequest"];
3811
- 500: components["responses"]["InternalServerError"];
3812
- };
3813
- };
3814
- uaepassPoll: {
3815
- parameters: {
3816
- query?: never;
3817
- header?: never;
3818
- path?: never;
3819
- cookie?: never;
3820
- };
3821
- requestBody: {
3822
- content: {
3823
- "application/json": {
3824
- token: components["schemas"]["Token"];
3825
- };
3826
- };
3827
- };
3828
- responses: {
3829
- /** @description Success */
3830
- 200: {
3831
- headers: {
3832
- [name: string]: unknown;
3833
- };
3834
- content: {
3835
- "application/json": {
3836
- message?: string;
3837
- token?: components["schemas"]["Token"];
3838
- };
3839
- };
3840
- };
3841
- };
3842
- };
3843
- uaepassCallback: {
3844
- parameters: {
3845
- query?: never;
3846
- header?: never;
3847
- path?: never;
3848
- cookie?: never;
3849
- };
3850
- requestBody?: never;
3851
- responses: {
3852
- /** @description Success */
3853
- 200: {
3854
- headers: {
3855
- [name: string]: unknown;
3856
- };
3857
- content?: never;
3858
- };
3859
- };
3860
- };
3861
- uaepassLogout: {
3862
- parameters: {
3863
- query?: never;
3864
- header?: never;
3865
- path?: never;
3866
- cookie?: never;
3867
- };
3868
- requestBody: {
3869
- content: {
3870
- "application/json": {
3871
- redirect: components["schemas"]["RedirectUri"];
3872
- };
3873
- };
3874
- };
3875
- responses: {
3876
- /** @description Success */
3877
- 200: {
3878
- headers: {
3879
- [name: string]: unknown;
3880
- };
3881
- content: {
3882
- "application/json": {
3883
- /**
3884
- * Format: uri
3885
- * @description UAE Pass logout URL to redirect user to
3886
- */
3887
- logoutUrl: string;
3888
- };
3889
- };
3890
- };
3891
- 400: components["responses"]["BadRequest"];
3892
- 500: components["responses"]["InternalServerError"];
3893
- };
3894
- };
3895
3882
  lraRequest: {
3896
3883
  parameters: {
3897
3884
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fill-easy/api",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for Fill Easy API",
6
6
  "main": "dist/index.js",