@fill-easy/api 1.0.34 → 1.0.36

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 +203 -36
  2. package/package.json +1 -1
package/dist/openapi.d.ts CHANGED
@@ -903,6 +903,8 @@ export interface paths {
903
903
  * **Fallback:** Provide `companyName` if `companyId` is unavailable — request will be processed manually.
904
904
  *
905
905
  * **Document Request:** Provide `documentId` from `/cra/{countryCode}/search/documents` to request specific document.
906
+ *
907
+ * **Document Type:** Each country has a `defaultDocumentType` (see [`/cra/info`](#tag/CorpVerify/operation/craInfo)). Omitting `documentType` selects that default. To request a specific document, pass its `name` or alias from the country's `documentTypes` list.
906
908
  */
907
909
  post: operations["craRequest"];
908
910
  delete?: never;
@@ -1051,7 +1053,9 @@ export interface paths {
1051
1053
  /**
1052
1054
  * Info
1053
1055
  * @description Returns metadata and a list of all countries supported by the CorpVerify service,
1054
- * including their automation status, available search capabilities, and report contents.
1056
+ * including their automation status, available search capabilities, report contents,
1057
+ * and the available document types per country. Each country includes a `defaultDocumentType`
1058
+ * indicating which document is returned when `documentType` is omitted from a `/cra/request` call.
1055
1059
  *
1056
1060
  * > For an up-to-date version of the same data, please view the [CorpVerify Country Coverage table](countries).
1057
1061
  */
@@ -1166,10 +1170,44 @@ export interface components {
1166
1170
  /** @description Whether registration information is available */
1167
1171
  registration: boolean;
1168
1172
  /** @description Whether shareholder information is available */
1169
- sharedholder: boolean;
1173
+ shareholder: boolean;
1170
1174
  /** @description Whether financial information is available */
1171
1175
  financial: boolean;
1172
1176
  };
1177
+ /**
1178
+ * @description The document type used when `documentType` is omitted from a `/cra/request` call.
1179
+ * Always matches one of the `name` values in `documentTypes`.
1180
+ * @example Company Particulars
1181
+ */
1182
+ defaultDocumentType: string;
1183
+ /** @description Available document types for this country */
1184
+ documentTypes: {
1185
+ /**
1186
+ * @description Document type name
1187
+ * @example Company Particulars
1188
+ */
1189
+ name: string;
1190
+ /**
1191
+ * @description List of content fields included in this document type
1192
+ * @example [
1193
+ * "registration",
1194
+ * "shareholder",
1195
+ * "financial"
1196
+ * ]
1197
+ */
1198
+ contents: components["schemas"]["DocumentContents"][];
1199
+ /**
1200
+ * @description Source of the document
1201
+ * @example Hong Kong Companies Registry
1202
+ */
1203
+ source: string;
1204
+ /**
1205
+ * Format: uri
1206
+ * @description URL to a sample document
1207
+ * @example https://cra-bucket-ap-east-1-prod.s3.ap-east-1.amazonaws.com/samples/HK_company-particulars.pdf
1208
+ */
1209
+ sampleUrl: string;
1210
+ }[];
1173
1211
  };
1174
1212
  CraInvalidCountryError: {
1175
1213
  /**
@@ -1185,6 +1223,12 @@ export interface components {
1185
1223
  */
1186
1224
  error: string;
1187
1225
  };
1226
+ /**
1227
+ * @description Data fields that can be included in company registry documents
1228
+ * @example shareholder
1229
+ * @enum {string}
1230
+ */
1231
+ DocumentContents: "registration" | "shareholder" | "financial";
1188
1232
  /**
1189
1233
  * @description JWT token
1190
1234
  * @example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U
@@ -1666,14 +1710,25 @@ export interface operations {
1666
1710
  path?: never;
1667
1711
  cookie?: never;
1668
1712
  };
1669
- requestBody?: never;
1713
+ requestBody: {
1714
+ content: {
1715
+ "application/json": {
1716
+ token: components["schemas"]["Token"];
1717
+ };
1718
+ };
1719
+ };
1670
1720
  responses: {
1671
1721
  /** @description Success */
1672
1722
  200: {
1673
1723
  headers: {
1674
1724
  [name: string]: unknown;
1675
1725
  };
1676
- content?: never;
1726
+ content: {
1727
+ "application/json": {
1728
+ message?: string;
1729
+ token?: string;
1730
+ };
1731
+ };
1677
1732
  };
1678
1733
  };
1679
1734
  };
@@ -1899,8 +1954,8 @@ export interface operations {
1899
1954
  };
1900
1955
  requestBody?: never;
1901
1956
  responses: {
1902
- /** @description Success */
1903
- 200: {
1957
+ /** @description Redirect to client application */
1958
+ 302: {
1904
1959
  headers: {
1905
1960
  [name: string]: unknown;
1906
1961
  };
@@ -2108,11 +2163,17 @@ export interface operations {
2108
2163
  };
2109
2164
  };
2110
2165
  responses: {
2166
+ /** @description Success */
2111
2167
  200: {
2112
2168
  headers: {
2113
2169
  [name: string]: unknown;
2114
2170
  };
2115
- content?: never;
2171
+ content: {
2172
+ "application/json": {
2173
+ url?: string;
2174
+ token?: string;
2175
+ };
2176
+ };
2116
2177
  };
2117
2178
  };
2118
2179
  };
@@ -2125,7 +2186,8 @@ export interface operations {
2125
2186
  };
2126
2187
  requestBody?: never;
2127
2188
  responses: {
2128
- 200: {
2189
+ /** @description Redirect to Singpass authorization */
2190
+ 302: {
2129
2191
  headers: {
2130
2192
  [name: string]: unknown;
2131
2193
  };
@@ -2142,7 +2204,8 @@ export interface operations {
2142
2204
  };
2143
2205
  requestBody?: never;
2144
2206
  responses: {
2145
- 200: {
2207
+ /** @description Redirect to client application */
2208
+ 302: {
2146
2209
  headers: {
2147
2210
  [name: string]: unknown;
2148
2211
  };
@@ -2159,7 +2222,8 @@ export interface operations {
2159
2222
  };
2160
2223
  requestBody?: never;
2161
2224
  responses: {
2162
- 200: {
2225
+ /** @description Redirect to client application */
2226
+ 302: {
2163
2227
  headers: {
2164
2228
  [name: string]: unknown;
2165
2229
  };
@@ -2176,7 +2240,8 @@ export interface operations {
2176
2240
  };
2177
2241
  requestBody?: never;
2178
2242
  responses: {
2179
- 200: {
2243
+ /** @description Redirect to client application */
2244
+ 302: {
2180
2245
  headers: {
2181
2246
  [name: string]: unknown;
2182
2247
  };
@@ -2193,11 +2258,18 @@ export interface operations {
2193
2258
  };
2194
2259
  requestBody?: never;
2195
2260
  responses: {
2261
+ /** @description JWK Set */
2196
2262
  200: {
2197
2263
  headers: {
2198
2264
  [name: string]: unknown;
2199
2265
  };
2200
- content?: never;
2266
+ content: {
2267
+ "application/json": {
2268
+ keys: {
2269
+ [key: string]: unknown;
2270
+ }[];
2271
+ };
2272
+ };
2201
2273
  };
2202
2274
  };
2203
2275
  };
@@ -2227,6 +2299,8 @@ export interface operations {
2227
2299
  };
2228
2300
  content: {
2229
2301
  "application/json": {
2302
+ /** @description Status message */
2303
+ message?: string;
2230
2304
  /** @description URL that should be shown to the user (usually as a QR code) */
2231
2305
  url?: string;
2232
2306
  /** @description Used to poll requested data */
@@ -2234,6 +2308,17 @@ export interface operations {
2234
2308
  };
2235
2309
  };
2236
2310
  };
2311
+ /** @description Pending - Data not yet available */
2312
+ 202: {
2313
+ headers: {
2314
+ [name: string]: unknown;
2315
+ };
2316
+ content: {
2317
+ "application/json": {
2318
+ message?: string;
2319
+ };
2320
+ };
2321
+ };
2237
2322
  /** @description Bad Request - Invalid request body. Ensure that your request body complies with the requirements. */
2238
2323
  400: {
2239
2324
  headers: {
@@ -2357,6 +2442,18 @@ export interface operations {
2357
2442
  content: {
2358
2443
  "application/json": {
2359
2444
  faceImage?: string;
2445
+ sceneImage?: string;
2446
+ message?: string;
2447
+ };
2448
+ };
2449
+ };
2450
+ /** @description Pending */
2451
+ 202: {
2452
+ headers: {
2453
+ [name: string]: unknown;
2454
+ };
2455
+ content: {
2456
+ "application/json": {
2360
2457
  message?: string;
2361
2458
  };
2362
2459
  };
@@ -2442,7 +2539,30 @@ export interface operations {
2442
2539
  content: {
2443
2540
  "application/json": {
2444
2541
  message?: string;
2445
- token?: components["schemas"]["Token"];
2542
+ /** @description Response data from UAE Pass */
2543
+ data?: unknown;
2544
+ };
2545
+ };
2546
+ };
2547
+ /** @description Pending - Authentication not yet complete */
2548
+ 202: {
2549
+ headers: {
2550
+ [name: string]: unknown;
2551
+ };
2552
+ content: {
2553
+ "application/json": {
2554
+ message?: string;
2555
+ };
2556
+ };
2557
+ };
2558
+ /** @description Bad Request */
2559
+ 400: {
2560
+ headers: {
2561
+ [name: string]: unknown;
2562
+ };
2563
+ content: {
2564
+ "application/json": {
2565
+ message?: string;
2446
2566
  };
2447
2567
  };
2448
2568
  };
@@ -2457,13 +2577,24 @@ export interface operations {
2457
2577
  };
2458
2578
  requestBody?: never;
2459
2579
  responses: {
2460
- /** @description Success */
2461
- 200: {
2580
+ /** @description Redirect to client application */
2581
+ 302: {
2462
2582
  headers: {
2463
2583
  [name: string]: unknown;
2464
2584
  };
2465
2585
  content?: never;
2466
2586
  };
2587
+ /** @description Bad Request */
2588
+ 400: {
2589
+ headers: {
2590
+ [name: string]: unknown;
2591
+ };
2592
+ content: {
2593
+ "application/json": {
2594
+ error?: string;
2595
+ };
2596
+ };
2597
+ };
2467
2598
  };
2468
2599
  };
2469
2600
  uaepassLogout: {
@@ -2879,13 +3010,7 @@ export interface operations {
2879
3010
  };
2880
3011
  };
2881
3012
  };
2882
- /** @description Invalid request parameters */
2883
- 400: {
2884
- headers: {
2885
- [name: string]: unknown;
2886
- };
2887
- content?: never;
2888
- };
3013
+ 400: components["responses"]["BadRequest"];
2889
3014
  /** @description Upstream verification service error */
2890
3015
  502: {
2891
3016
  headers: {
@@ -3022,8 +3147,9 @@ export interface operations {
3022
3147
  /** @description [ISO 3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-2) country code (case insensitive) */
3023
3148
  countryCode: string;
3024
3149
  /**
3025
- * @description Type of document
3026
- * @default companySearch
3150
+ * @description The document type to retrieve. Must match a `name` (or alias) from the country's `documentTypes` list in [`/cra/info`](#tag/CorpVerify/operation/craInfo).
3151
+ *
3152
+ * If omitted, defaults to the country's `defaultDocumentType` from `/cra/info`.
3027
3153
  */
3028
3154
  documentType?: string;
3029
3155
  /** @description Year of the document */
@@ -3290,13 +3416,7 @@ export interface operations {
3290
3416
  };
3291
3417
  };
3292
3418
  };
3293
- /** @description Invalid token */
3294
- 400: {
3295
- headers: {
3296
- [name: string]: unknown;
3297
- };
3298
- content?: never;
3299
- };
3419
+ 400: components["responses"]["BadRequest"];
3300
3420
  /** @description Internal server error */
3301
3421
  500: {
3302
3422
  headers: {
@@ -3353,7 +3473,12 @@ export interface operations {
3353
3473
  headers: {
3354
3474
  [name: string]: unknown;
3355
3475
  };
3356
- content?: never;
3476
+ content: {
3477
+ "application/json": {
3478
+ /** @enum {string} */
3479
+ message: "search error";
3480
+ };
3481
+ };
3357
3482
  };
3358
3483
  };
3359
3484
  };
@@ -3448,7 +3573,12 @@ export interface operations {
3448
3573
  headers: {
3449
3574
  [name: string]: unknown;
3450
3575
  };
3451
- content?: never;
3576
+ content: {
3577
+ "application/json": {
3578
+ /** @enum {string} */
3579
+ message: "search error";
3580
+ };
3581
+ };
3452
3582
  };
3453
3583
  };
3454
3584
  };
@@ -3502,7 +3632,12 @@ export interface operations {
3502
3632
  headers: {
3503
3633
  [name: string]: unknown;
3504
3634
  };
3505
- content?: never;
3635
+ content: {
3636
+ "application/json": {
3637
+ /** @enum {string} */
3638
+ message: "search error";
3639
+ };
3640
+ };
3506
3641
  };
3507
3642
  };
3508
3643
  };
@@ -3626,11 +3761,29 @@ export interface operations {
3626
3761
  };
3627
3762
  };
3628
3763
  responses: {
3764
+ /** @description Report ready */
3629
3765
  200: {
3630
3766
  headers: {
3631
3767
  [name: string]: unknown;
3632
3768
  };
3633
- content?: never;
3769
+ content: {
3770
+ "application/json": {
3771
+ message?: string;
3772
+ /** @description Presigned URL to download the report */
3773
+ data?: string;
3774
+ };
3775
+ };
3776
+ };
3777
+ /** @description Report is pending */
3778
+ 202: {
3779
+ headers: {
3780
+ [name: string]: unknown;
3781
+ };
3782
+ content: {
3783
+ "application/json": {
3784
+ message?: string;
3785
+ };
3786
+ };
3634
3787
  };
3635
3788
  };
3636
3789
  };
@@ -3656,11 +3809,25 @@ export interface operations {
3656
3809
  };
3657
3810
  };
3658
3811
  responses: {
3812
+ /** @description Search results */
3659
3813
  200: {
3660
3814
  headers: {
3661
3815
  [name: string]: unknown;
3662
3816
  };
3663
- content?: never;
3817
+ content: {
3818
+ "application/json": {
3819
+ /**
3820
+ * @description Property Reference Number
3821
+ * @example HK1234567
3822
+ */
3823
+ prn: string;
3824
+ /**
3825
+ * @description Free format address in English
3826
+ * @example FLAT A, 8/F, BLOCK B, KAI TAK COMMERCIAL BUILDING, 86 DES VOEUX ROAD
3827
+ */
3828
+ free_format_addr_eng: string;
3829
+ }[];
3830
+ };
3664
3831
  };
3665
3832
  };
3666
3833
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fill-easy/api",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for Fill Easy API",
6
6
  "main": "dist/index.js",