@fill-easy/api 1.0.28 → 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 +308 -214
  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,28 +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
- * #### Automated retrieval using Company ID for supported countries
884
- *
885
- * If the country supplied in `countryCode` is in the [AutomatedCountry](/models) Model,
886
- * 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`.
887
975
  *
888
- * In order to ensure a valid `companyId`, please validate using `/cra/{countryCode}/search/companies`.
976
+ * **Required:** `countryCode` (ISO 3166 alpha-2)
889
977
  *
890
- * In this case, `/cra/poll` will resolve in around 5 minutes.
978
+ * **Recommended:** `companyId` from `/cra/{countryCode}/search/companies` for faster automated processing.
891
979
  *
892
- * The `/cra/{countryCode}/search/companies` endpoint will not return a
893
- * companyId for certain countries (empty string). In that case please
894
- * refer to the information in the section below.
980
+ * **Fallback:** Provide `companyName` if `companyId` is unavailable — request will be processed manually.
895
981
  *
896
- * #### Manual request for unsupported countries or missing Company ID
897
- *
898
- * In case of unsupported countries or missing `companyId`, Fill Easy will manually process the request.
899
- * Retrieving this information may take longer (up to several days).
900
- *
901
- * In any case, the endpoint returns a JWT token that should be used with the
902
- * `/cra/poll` endpoint to retrieve the document when ready.
982
+ * **Document Request:** Provide `documentId` from `/cra/{countryCode}/search/documents` to request specific document.
903
983
  */
904
984
  post: operations["craRequest"];
905
985
  delete?: never;
@@ -1038,74 +1118,21 @@ export interface paths {
1038
1118
  patch?: never;
1039
1119
  trace?: never;
1040
1120
  };
1041
- "/uaepass/request/auth": {
1121
+ "/cra/info": {
1042
1122
  parameters: {
1043
1123
  query?: never;
1044
1124
  header?: never;
1045
1125
  path?: never;
1046
1126
  cookie?: never;
1047
1127
  };
1048
- get?: never;
1049
- put?: never;
1050
1128
  /**
1051
- * Authentication
1052
- * @description Retrieves user identity details following a successful UAE Pass login.
1053
- */
1054
- post: operations["uaepassAuth"];
1055
- delete?: never;
1056
- options?: never;
1057
- head?: never;
1058
- patch?: never;
1059
- trace?: never;
1060
- };
1061
- "/uaepass/poll": {
1062
- parameters: {
1063
- query?: never;
1064
- header?: never;
1065
- path?: never;
1066
- cookie?: never;
1067
- };
1068
- get?: never;
1069
- put?: never;
1070
- /**
1071
- * Poll Data
1072
- * @description Short poll this endpoint, passing in the `token` (from endpoints in `Request Data` folder) to obtain the results.
1073
- *
1074
- * For authentication, this includes user data. For signing, this provides a link by which the signed document can be obtained.
1075
- *
1076
- * The response's `token` is a JWT or JWE depending if there's sensitive personal data. You should handle them like so:
1077
- *
1078
- * - `JWT` verify\* token
1079
- *
1080
- * - `JWE` decrypt using the private keys that Fill Easy has previously provided.
1081
- *
1082
- *
1083
- * Please note that the data result is returned only once and is deleted immediately.
1084
- *
1085
- * \*you can try using online decoder like [https://jwt.io/](https://jwt.io/)
1129
+ * Info
1130
+ * @description Returns metadata and a list of all countries supported by the CorpVerify service,
1131
+ * including their automation status, available search capabilities, and report contents.
1086
1132
  *
1087
- * 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).
1088
1134
  */
1089
- post: operations["uaepassPoll"];
1090
- delete?: never;
1091
- options?: never;
1092
- head?: never;
1093
- patch?: never;
1094
- trace?: never;
1095
- };
1096
- "/uaepass/callback": {
1097
- parameters: {
1098
- query?: never;
1099
- header?: never;
1100
- path?: never;
1101
- cookie?: never;
1102
- };
1103
- /**
1104
- * Callback
1105
- * @description UAE Pass will redirect to this endpoint after user authorization.
1106
- * 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.
1107
- */
1108
- get: operations["uaepassCallback"];
1135
+ get: operations["craInfo"];
1109
1136
  put?: never;
1110
1137
  post?: never;
1111
1138
  delete?: never;
@@ -1114,23 +1141,6 @@ export interface paths {
1114
1141
  patch?: never;
1115
1142
  trace?: never;
1116
1143
  };
1117
- "/uaepass/logout": {
1118
- parameters: {
1119
- query?: never;
1120
- header?: never;
1121
- path?: never;
1122
- cookie?: never;
1123
- };
1124
- get?: never;
1125
- put?: never;
1126
- /** UAEPass Logout */
1127
- post: operations["uaepassLogout"];
1128
- delete?: never;
1129
- options?: never;
1130
- head?: never;
1131
- patch?: never;
1132
- trace?: never;
1133
- };
1134
1144
  "/lra/request": {
1135
1145
  parameters: {
1136
1146
  query?: never;
@@ -1195,11 +1205,49 @@ export interface paths {
1195
1205
  export type webhooks = Record<string, never>;
1196
1206
  export interface components {
1197
1207
  schemas: {
1198
- /**
1199
- * @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code for regions with fully automated support.
1200
- * @enum {string}
1201
- */
1202
- AutomatedCountry: "HK" | "AU" | "CN";
1208
+ Country: {
1209
+ /**
1210
+ * @description Country name
1211
+ * @example Hong Kong
1212
+ */
1213
+ name: string;
1214
+ /**
1215
+ * @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code.
1216
+ * @example HK
1217
+ */
1218
+ code: string;
1219
+ /**
1220
+ * @description Geographic region
1221
+ * @example Asia
1222
+ */
1223
+ region: string;
1224
+ /**
1225
+ * @description ISO 639-1 language code for the source language of documents
1226
+ * @example en
1227
+ */
1228
+ sourceLanguage: string;
1229
+ /**
1230
+ * @description Whether the country is fully automated or requires manual processing
1231
+ * @enum {string}
1232
+ */
1233
+ status: "automated" | "manual";
1234
+ search: {
1235
+ /** @description Whether document search is available */
1236
+ documents: boolean;
1237
+ /** @description Whether company name search is available */
1238
+ companies: boolean;
1239
+ /** @description Whether company ID lookup is available */
1240
+ company: boolean;
1241
+ };
1242
+ contents: {
1243
+ /** @description Whether registration information is available */
1244
+ registration: boolean;
1245
+ /** @description Whether shareholder information is available */
1246
+ sharedholder: boolean;
1247
+ /** @description Whether financial information is available */
1248
+ financial: boolean;
1249
+ };
1250
+ };
1203
1251
  Error: {
1204
1252
  /**
1205
1253
  * @description Error message
@@ -2385,6 +2433,143 @@ export interface operations {
2385
2433
  };
2386
2434
  };
2387
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
+ };
2388
2573
  request1: {
2389
2574
  parameters: {
2390
2575
  query?: never;
@@ -3179,7 +3364,7 @@ export interface operations {
3179
3364
  /** @description Company ID (e.g., BRN for Hong Kong, ACN for Australia) */
3180
3365
  companyId?: string;
3181
3366
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code (case insensitive) */
3182
- countryCode: components["schemas"]["AutomatedCountry"] | string;
3367
+ countryCode: string;
3183
3368
  /**
3184
3369
  * @description Type of document
3185
3370
  * @default companySearch
@@ -3469,7 +3654,7 @@ export interface operations {
3469
3654
  header?: never;
3470
3655
  path: {
3471
3656
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code in lowercase. */
3472
- countryCode: "hk" | "cn" | "au" | "sg" | "ky" | "th" | "us" | "bm" | "kh" | "ph";
3657
+ countryCode: string;
3473
3658
  };
3474
3659
  cookie?: never;
3475
3660
  };
@@ -3518,7 +3703,7 @@ export interface operations {
3518
3703
  header?: never;
3519
3704
  path: {
3520
3705
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code. */
3521
- countryCode: "hk" | "ph";
3706
+ countryCode: string;
3522
3707
  };
3523
3708
  cookie?: never;
3524
3709
  };
@@ -3535,7 +3720,7 @@ export interface operations {
3535
3720
  */
3536
3721
  documentType?: "financialStatement" | "annualReturn" | "GIS" | "AFS";
3537
3722
  /** @description Optional filter by year */
3538
- documentYear?: number;
3723
+ documentYear?: string;
3539
3724
  };
3540
3725
  };
3541
3726
  };
@@ -3602,7 +3787,7 @@ export interface operations {
3602
3787
  header?: never;
3603
3788
  path: {
3604
3789
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code. */
3605
- countryCode: "hk" | "au" | "sg" | "th" | "us" | "kh" | "ph";
3790
+ countryCode: string;
3606
3791
  };
3607
3792
  cookie?: never;
3608
3793
  };
@@ -3648,141 +3833,50 @@ export interface operations {
3648
3833
  };
3649
3834
  };
3650
3835
  };
3651
- uaepassAuth: {
3836
+ craInfo: {
3652
3837
  parameters: {
3653
3838
  query?: never;
3654
3839
  header?: never;
3655
3840
  path?: never;
3656
3841
  cookie?: never;
3657
3842
  };
3658
- requestBody: {
3659
- content: {
3660
- "application/json": {
3661
- redirect: components["schemas"]["RedirectUri"];
3662
- /**
3663
- * @description List of values, separated by spaces, that represent the scope of the authorization that the application wants to obtain.
3664
- * It queries the scopes required for accessing the resources or services in question.
3665
- * Available scopes: sub, fullnameAR, gender, mobile, lastnameEN, fullnameEN, uuid, lastnameAR, idn, nationalityEN, firstnameEN, userType, nationalityAR, firstnameAR, email.
3666
- * (To be shared by UAEPASS Team if its value is other than specified in sample above)
3667
- * @example sub fullnameEN email mobile
3668
- */
3669
- scope?: string;
3670
- /**
3671
- * @description UAE Pass display language, case sensitive
3672
- * @example en
3673
- * @enum {string}
3674
- */
3675
- lang?: "en" | "ar";
3676
- /**
3677
- * @description Platform source for the authentication request
3678
- * @example PC_Browser
3679
- * @enum {string}
3680
- */
3681
- source: "PC_Browser" | "android" | "iOS" | "Mobile_Browser";
3682
- };
3683
- };
3684
- };
3685
- responses: {
3686
- /** @description Success */
3687
- 200: {
3688
- headers: {
3689
- [name: string]: unknown;
3690
- };
3691
- content: {
3692
- "application/json": {
3693
- /** @description JWT token for polling authentication status */
3694
- token: string;
3695
- /**
3696
- * Format: uri
3697
- * @description UAE Pass authorization URL to redirect user to
3698
- */
3699
- oAuthUrl: string;
3700
- };
3701
- };
3702
- };
3703
- 400: components["responses"]["BadRequest"];
3704
- 500: components["responses"]["InternalServerError"];
3705
- };
3706
- };
3707
- uaepassPoll: {
3708
- parameters: {
3709
- query?: never;
3710
- header?: never;
3711
- path?: never;
3712
- cookie?: never;
3713
- };
3714
- requestBody: {
3715
- content: {
3716
- "application/json": {
3717
- token: components["schemas"]["Token"];
3718
- };
3719
- };
3720
- };
3843
+ requestBody?: never;
3721
3844
  responses: {
3722
- /** @description Success */
3845
+ /** @description Successfully retrieved country information */
3723
3846
  200: {
3724
3847
  headers: {
3725
3848
  [name: string]: unknown;
3726
3849
  };
3727
3850
  content: {
3728
3851
  "application/json": {
3729
- message?: string;
3730
- token?: components["schemas"]["Token"];
3852
+ meta: {
3853
+ /** @description Total number of countries */
3854
+ totalCountries: number;
3855
+ /** @description Number of automated countries */
3856
+ automated: number;
3857
+ /** @description Number of manual countries */
3858
+ manual: number;
3859
+ /** @description Number of countries with at least one search capability */
3860
+ searchable: number;
3861
+ };
3862
+ countries: components["schemas"]["Country"][];
3731
3863
  };
3732
3864
  };
3733
3865
  };
3734
- };
3735
- };
3736
- uaepassCallback: {
3737
- parameters: {
3738
- query?: never;
3739
- header?: never;
3740
- path?: never;
3741
- cookie?: never;
3742
- };
3743
- requestBody?: never;
3744
- responses: {
3745
- /** @description Success */
3746
- 200: {
3866
+ /** @description Bad Request */
3867
+ 400: {
3747
3868
  headers: {
3748
3869
  [name: string]: unknown;
3749
3870
  };
3750
3871
  content?: never;
3751
3872
  };
3752
- };
3753
- };
3754
- uaepassLogout: {
3755
- parameters: {
3756
- query?: never;
3757
- header?: never;
3758
- path?: never;
3759
- cookie?: never;
3760
- };
3761
- requestBody: {
3762
- content: {
3763
- "application/json": {
3764
- redirect: components["schemas"]["RedirectUri"];
3765
- };
3766
- };
3767
- };
3768
- responses: {
3769
- /** @description Success */
3770
- 200: {
3873
+ /** @description Internal server error */
3874
+ 500: {
3771
3875
  headers: {
3772
3876
  [name: string]: unknown;
3773
3877
  };
3774
- content: {
3775
- "application/json": {
3776
- /**
3777
- * Format: uri
3778
- * @description UAE Pass logout URL to redirect user to
3779
- */
3780
- logoutUrl: string;
3781
- };
3782
- };
3878
+ content?: never;
3783
3879
  };
3784
- 400: components["responses"]["BadRequest"];
3785
- 500: components["responses"]["InternalServerError"];
3786
3880
  };
3787
3881
  };
3788
3882
  lraRequest: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fill-easy/api",
3
- "version": "1.0.28",
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",