@fill-easy/api 1.0.19 → 1.0.20

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 +45 -91
  2. package/package.json +1 -1
package/dist/openapi.d.ts CHANGED
@@ -54,7 +54,6 @@ export interface paths {
54
54
  * - Browser: Must be an HTTPS URL registered with iAM Smart
55
55
  * - Mobile: Must be a universal link or custom scheme (e.g., `your-app://auth`)
56
56
  * that your mobile app can handle
57
- *
58
57
  */
59
58
  post: operations["iamSmartAuthentication"];
60
59
  delete?: never;
@@ -96,7 +95,6 @@ export interface paths {
96
95
  *
97
96
  * The `formFields` array specifies which detail fields to request from the user.
98
97
  * All requested fields will be displayed to the user in their iAM Smart app for approval.
99
- *
100
98
  */
101
99
  post: operations["iamSmartFormFilling"];
102
100
  delete?: never;
@@ -133,7 +131,6 @@ export interface paths {
133
131
  * - Must be a SHA-256 hash of the document content
134
132
  * - Must be exactly 64 hexadecimal characters
135
133
  * - Use SHA256withRSA signature algorithm (default)
136
- *
137
134
  */
138
135
  post: operations["iamSmartHashSigning"];
139
136
  delete?: never;
@@ -170,7 +167,6 @@ export interface paths {
170
167
  * - Must be a base64-encoded hash of the PDF file
171
168
  * - The signed PDF will be returned with the signature embedded
172
169
  * - PDF signature will be visible in PDF readers that support digital signatures
173
- *
174
170
  */
175
171
  post: operations["iamSmartPdfSigning"];
176
172
  delete?: never;
@@ -208,7 +204,6 @@ export interface paths {
208
204
  * - Verify user identity before sensitive operations
209
205
  * - Refresh user authentication for extended sessions
210
206
  * - Comply with security policies requiring periodic re-verification
211
- *
212
207
  */
213
208
  post: operations["iamSmartReauthentication"];
214
209
  delete?: never;
@@ -259,7 +254,6 @@ export interface paths {
259
254
  * If you request overlapping fields in both `profileFields` and `formData.formFields`,
260
255
  * the `profileFields` takes precedence. You must display a consent page per iAM Smart
261
256
  * UI/UX requirements when using profile fields.
262
- *
263
257
  */
264
258
  post: operations["iamSmartAnonFormFilling"];
265
259
  delete?: never;
@@ -292,7 +286,6 @@ export interface paths {
292
286
  *
293
287
  * - Must be a SHA-256 hash of the document content
294
288
  * - Must be exactly 64 hexadecimal characters
295
- *
296
289
  */
297
290
  post: operations["iamSmartAnonHashSigning"];
298
291
  delete?: never;
@@ -318,7 +311,6 @@ export interface paths {
318
311
  *
319
312
  *
320
313
  * **Use the temporary token** with the polling endpoint to retrieve the signed document once the user completes the signing process.
321
- *
322
314
  */
323
315
  post: operations["iamSmartAnonPdfSigning"];
324
316
  delete?: never;
@@ -347,7 +339,6 @@ export interface paths {
347
339
  * @description This endpoint is called by iAM Smart government servers to deliver
348
340
  * the encrypted results of user authentication, form filling, or signing requests.
349
341
  * The content is encrypted and must be decrypted using the CEK (Content Encryption Key).
350
- *
351
342
  */
352
343
  post: operations["govCallback"];
353
344
  delete?: never;
@@ -374,7 +365,6 @@ export interface paths {
374
365
  * @description iAM Smart redirects the user to this endpoint after completing the authentication
375
366
  * or service request flow. It processes the authorization code or error from
376
367
  * iAM Smart and again redirects to the client's specified redirect URL.
377
- *
378
368
  */
379
369
  get: operations["iamSmartRedirect"];
380
370
  put?: never;
@@ -692,7 +682,6 @@ export interface paths {
692
682
  *
693
683
  * **Note:** The redirect is **UX-only**; you still need to call `/ocr/poll` with the
694
684
  * returned `token` to obtain the authoritative decision.
695
- *
696
685
  */
697
686
  post: operations["request1"];
698
687
  delete?: never;
@@ -729,7 +718,6 @@ export interface paths {
729
718
  *
730
719
  *
731
720
  * **Terminal states:** `Success`, `Failure`, or `Void\*`.
732
- *
733
721
  */
734
722
  post: operations["ocrPoll"];
735
723
  delete?: never;
@@ -771,7 +759,6 @@ export interface paths {
771
759
  *
772
760
  * In any case, the endpoint returns a JWT token that should be used with the
773
761
  * `/cra/poll` endpoint to retrieve the document when ready.
774
- *
775
762
  */
776
763
  post: operations["craRequest"];
777
764
  delete?: never;
@@ -802,7 +789,6 @@ export interface paths {
802
789
  *
803
790
  * Once the report is ready, the endpoint will bill the service and return
804
791
  * a presigned URL valid for 1 hour to download the PDF document.
805
- *
806
792
  */
807
793
  post: operations["craPoll"];
808
794
  delete?: never;
@@ -838,7 +824,6 @@ export interface paths {
838
824
  * Tokenized search (e.g. searching "PLE" will not result in "APPLE"): AU, SG
839
825
  * Left partial search: HK
840
826
  * Partial name search: US
841
- *
842
827
  */
843
828
  post: operations["searchCompanies"];
844
829
  delete?: never;
@@ -870,7 +855,6 @@ export interface paths {
870
855
  * Document categories include: Annual Return, Director / Secretary
871
856
  * Changes, Charges Filed, Incorporation & Name Change, Liquidation &
872
857
  * Deregistration, Registered Office / Address, Share Capital, and Other.
873
- *
874
858
  */
875
859
  post: operations["searchDocuments"];
876
860
  delete?: never;
@@ -901,7 +885,6 @@ export interface paths {
901
885
  * and other available details such as entity type, registration address, and remarks where
902
886
  * applicable. The exact fields returned may vary depending on the data provided by each
903
887
  * country’s registry.
904
- *
905
888
  */
906
889
  post: operations["searchCompany"];
907
890
  delete?: never;
@@ -1096,13 +1079,11 @@ export interface components {
1096
1079
  * Requested scope of authorization based on available services.
1097
1080
  * Multiple scopes should be space-separated. Valid scopes are:
1098
1081
  * eidapi_auth, eidapi_profiles, eidapi_formFilling, eidapi_sign, eidapi_fr, eidapi_bulksign
1099
- *
1100
1082
  * @example eidapi_auth eidapi_formFilling eidapi_sign
1101
1083
  */
1102
1084
  IamSmartScope: string;
1103
1085
  /**
1104
1086
  * @description iAM Smart App display language (case sensitive). Will default to 'en-US' if not specified
1105
- *
1106
1087
  * @default en-US
1107
1088
  * @enum {string}
1108
1089
  */
@@ -1113,7 +1094,6 @@ export interface components {
1113
1094
  * Browser: https URL to your website.
1114
1095
  *
1115
1096
  * Mobile: Universal link (your-app://) or app scheme.
1116
- *
1117
1097
  * @example https://www.yourwebsite.com/callback
1118
1098
  * @example com.filleasy.app
1119
1099
  */
@@ -1149,7 +1129,6 @@ export interface components {
1149
1129
  * @description Mandatorily obtain specific profile fields.
1150
1130
  * Note: You must display a consent page per iAM Smart UI/UX requirements when using these fields.
1151
1131
  * If fields overlap between `profileFields` and `formData.formFields`, `profileFields` takes precedence.
1152
- *
1153
1132
  * @example [
1154
1133
  * "idNo",
1155
1134
  * "enName",
@@ -1175,7 +1154,6 @@ export interface components {
1175
1154
  * For Hong Kong: Business Registration Number (BRN) - an 8-digit number.
1176
1155
  * For Australia: Australian Company Number (ACN).
1177
1156
  * For Singapore: Unique Entity Number (UEN).
1178
- *
1179
1157
  * @example 72599839
1180
1158
  */
1181
1159
  companyId: string;
@@ -1185,7 +1163,6 @@ export interface components {
1185
1163
  * - "ACN" - Australian Company Number (Australia)
1186
1164
  * - "UEN" - Unique Entity Number (Singapore)
1187
1165
  * - "Unavailable" - When the country does not provide a company ID
1188
- *
1189
1166
  * @example BRN
1190
1167
  */
1191
1168
  idType: string;
@@ -1200,7 +1177,6 @@ export interface components {
1200
1177
  * @description Current active status of the company.
1201
1178
  * - "Live" - Company is currently active and in good standing
1202
1179
  * - "Dissolved" - Company has been dissolved/deregistered
1203
- *
1204
1180
  * @example Live
1205
1181
  * @enum {string}
1206
1182
  */
@@ -1209,27 +1185,13 @@ export interface components {
1209
1185
  * @description Indicates whether the returned name is the current or a previous name.
1210
1186
  * - "current" - This is the company's current registered name
1211
1187
  * - "old" - This is a previous/historical name of the company
1212
- *
1213
1188
  * @example current
1214
1189
  * @enum {string}
1215
1190
  */
1216
1191
  nameType?: "current" | "old";
1217
- /**
1218
- * @description Type of incorporation/registration based on Companies Ordinance (Cap. 622)
1219
- * @example Company Limited by Shares
1220
- * @enum {string}
1221
- */
1222
- incorporationType?: "Company Limited by Shares" | "Registered Non-Hong Kong Company" | "Company Limited by Guarantee" | "Unlimited Company" | "Registered Society/Organization" | "Open-ended Fund Company" | "Limited Partnership Fund" | "N/A";
1223
- /**
1224
- * @description Private vs Public company classification based on Companies Ordinance (Cap. 622)
1225
- * @example Private Company
1226
- * @enum {string}
1227
- */
1228
- entityCategory?: "Public Company" | "Private Company" | "N/A";
1229
1192
  /** @description Registered address of the company (when available) */
1230
1193
  address?: string;
1231
- };
1232
- CompanyBaseData: components["schemas"]["Company"] & {
1194
+ registrationDetails: components["schemas"]["registrationDetail"][];
1233
1195
  /**
1234
1196
  * Format: date
1235
1197
  * @description Date of dissolution (YYYY-MM-DD format, empty string if not dissolved)
@@ -1260,6 +1222,13 @@ export interface components {
1260
1222
  effectiveDate?: string;
1261
1223
  }[];
1262
1224
  };
1225
+ /**
1226
+ * @description Legal classification or entity type identifier.
1227
+ * Provides details about a company based on its incorporation structure (e.g., Limited by Shares) or its regulatory category (e.g., Private vs. Public) according to the relevant national companies legislation.
1228
+ * @example Private Company
1229
+ * @enum {string}
1230
+ */
1231
+ registrationDetail: "Company Limited by Shares" | "Registered Non-Hong Kong Company" | "Company Limited by Guarantee" | "Unlimited Company" | "Registered Society/Organization" | "Open-ended Fund Company" | "Limited Partnership Fund" | "Public Company" | "Private Company" | "Foreign Company" | "Foreign Company Branch" | "Registered Australian Corporation under non-Corporations Law" | "Company Limited by Both Shares and Guarantees" | "No Liability Company" | "Sole Proprietorship/ Partnership" | "Sole Proprietorship" | "Limited Liability Partnership" | "Limited Partnership" | "Unlimited Partnership" | "Local Company" | "Juristic Ordinary Partnership" | "Foreign Juristic Person" | "Joint Venture" | "Chamber of Commerce" | "N/A";
1263
1232
  };
1264
1233
  responses: {
1265
1234
  /** @description Unauthorized - Token is missing, invalid, or expired */
@@ -1339,9 +1308,10 @@ export interface operations {
1339
1308
  };
1340
1309
  };
1341
1310
  responses: {
1342
- /** @description Authentication request successfully initialized.
1311
+ /**
1312
+ * @description Authentication request successfully initialized.
1343
1313
  * Store the token for subsequent API calls.
1344
- * */
1314
+ */
1345
1315
  200: {
1346
1316
  headers: {
1347
1317
  [name: string]: unknown;
@@ -1354,7 +1324,6 @@ export interface operations {
1354
1324
  * Format: uri
1355
1325
  * @description Browser: URL to iAM Smart QR page for scanning.
1356
1326
  * Mobile: Universal link to launch iAM Smart app.
1357
- *
1358
1327
  * @example https://hk.gov.iamsmart.testapp://auth?clientID=...
1359
1328
  */
1360
1329
  url: string;
@@ -1385,9 +1354,10 @@ export interface operations {
1385
1354
  };
1386
1355
  };
1387
1356
  responses: {
1388
- /** @description Form filling request successfully initialized.
1357
+ /**
1358
+ * @description Form filling request successfully initialized.
1389
1359
  * Poll with the returned token to retrieve form data when ready.
1390
- * */
1360
+ */
1391
1361
  200: {
1392
1362
  headers: {
1393
1363
  [name: string]: unknown;
@@ -1441,9 +1411,10 @@ export interface operations {
1441
1411
  };
1442
1412
  };
1443
1413
  responses: {
1444
- /** @description Signing request successfully initialized.
1414
+ /**
1415
+ * @description Signing request successfully initialized.
1445
1416
  * Poll with the returned token to get signature results.
1446
- * */
1417
+ */
1447
1418
  200: {
1448
1419
  headers: {
1449
1420
  [name: string]: unknown;
@@ -1502,9 +1473,10 @@ export interface operations {
1502
1473
  };
1503
1474
  };
1504
1475
  responses: {
1505
- /** @description PDF signing request successfully initialized.
1476
+ /**
1477
+ * @description PDF signing request successfully initialized.
1506
1478
  * Poll with the returned token to retrieve signed PDF when ready.
1507
- * */
1479
+ */
1508
1480
  200: {
1509
1481
  headers: {
1510
1482
  [name: string]: unknown;
@@ -1543,9 +1515,10 @@ export interface operations {
1543
1515
  };
1544
1516
  };
1545
1517
  responses: {
1546
- /** @description Re-authentication request successfully initialized.
1518
+ /**
1519
+ * @description Re-authentication request successfully initialized.
1547
1520
  * Poll with the returned token to get re-authentication results.
1548
- * */
1521
+ */
1549
1522
  200: {
1550
1523
  headers: {
1551
1524
  [name: string]: unknown;
@@ -1607,9 +1580,10 @@ export interface operations {
1607
1580
  };
1608
1581
  };
1609
1582
  responses: {
1610
- /** @description Anonymous form filling request successfully initialized.
1583
+ /**
1584
+ * @description Anonymous form filling request successfully initialized.
1611
1585
  * Redirect user to the URL, then poll with the token to retrieve form data.
1612
- * */
1586
+ */
1613
1587
  200: {
1614
1588
  headers: {
1615
1589
  [name: string]: unknown;
@@ -1658,9 +1632,10 @@ export interface operations {
1658
1632
  };
1659
1633
  };
1660
1634
  responses: {
1661
- /** @description Anonymous signing request successfully initialized.
1635
+ /**
1636
+ * @description Anonymous signing request successfully initialized.
1662
1637
  * Redirect user to the URL, then poll with the token to retrieve signature.
1663
- * */
1638
+ */
1664
1639
  200: {
1665
1640
  headers: {
1666
1641
  [name: string]: unknown;
@@ -2141,9 +2116,11 @@ export interface operations {
2141
2116
  [name: string]: unknown;
2142
2117
  };
2143
2118
  content: {
2144
- /** @example {
2119
+ /**
2120
+ * @example {
2145
2121
  * "message": "Invalid request body"
2146
- * } */
2122
+ * }
2123
+ */
2147
2124
  "application/json": {
2148
2125
  /** @enum {string} */
2149
2126
  message?: "Invalid request body";
@@ -2156,9 +2133,11 @@ export interface operations {
2156
2133
  [name: string]: unknown;
2157
2134
  };
2158
2135
  content: {
2159
- /** @example {
2136
+ /**
2137
+ * @example {
2160
2138
  * "message": "Unauthorized"
2161
- * } */
2139
+ * }
2140
+ */
2162
2141
  "application/json": {
2163
2142
  /** @enum {string} */
2164
2143
  message?: "Unauthorized";
@@ -2274,7 +2253,6 @@ export interface operations {
2274
2253
  * Format: uri
2275
2254
  * @description Where to redirect the user **after success**.
2276
2255
  * Must be publicly reachable over **https**.
2277
- *
2278
2256
  * @example https://example.com/ocr/complete
2279
2257
  */
2280
2258
  completeCallbackUrl: string;
@@ -2282,7 +2260,6 @@ export interface operations {
2282
2260
  * Format: uri
2283
2261
  * @description Where to redirect the user if they **cancel/exit**.
2284
2262
  * Must be publicly reachable over **https**.
2285
- *
2286
2263
  * @example https://example.com/ocr/interrupt
2287
2264
  */
2288
2265
  interruptCallbackUrl: string;
@@ -2290,7 +2267,6 @@ export interface operations {
2290
2267
  * @description The identity document type to verify.
2291
2268
  * `00000001003` (Passport), `08520000002` (HKID New), `08520000001` (HKID Old).
2292
2269
  * Use the exact code for your target document.
2293
- *
2294
2270
  * @example 08520000002
2295
2271
  * @enum {string}
2296
2272
  */
@@ -2310,13 +2286,13 @@ export interface operations {
2310
2286
  * Format: uri
2311
2287
  * @description Launch URL to open on a mobile browser or in an in-app web view.
2312
2288
  * This URL contains the configuration for the H5 verification flow.
2313
- *
2314
2289
  * @example https://<cdn>/page/realid-fe/index.html?clientcfg=eyJ...
2315
2290
  */
2316
2291
  url: string;
2317
- /** @description JWT token carrying bizId and transactionId.
2292
+ /**
2293
+ * @description JWT token carrying bizId and transactionId.
2318
2294
  * Store this token to poll for verification results using `/ocr/poll`.
2319
- * */
2295
+ */
2320
2296
  token: components["schemas"]["Token"];
2321
2297
  };
2322
2298
  };
@@ -2866,20 +2842,13 @@ export interface operations {
2866
2842
  };
2867
2843
  };
2868
2844
  };
2869
- /** @description Bad Request - Invalid input parameters */
2845
+ /** @description Bad Request - Invalid input parameters, or service not offered for this country */
2870
2846
  400: {
2871
2847
  headers: {
2872
2848
  [name: string]: unknown;
2873
2849
  };
2874
2850
  content?: never;
2875
2851
  };
2876
- /** @description No matching companies found */
2877
- 404: {
2878
- headers: {
2879
- [name: string]: unknown;
2880
- };
2881
- content?: never;
2882
- };
2883
2852
  /** @description Internal server error */
2884
2853
  500: {
2885
2854
  headers: {
@@ -2955,20 +2924,13 @@ export interface operations {
2955
2924
  };
2956
2925
  };
2957
2926
  };
2958
- /** @description Bad Request - Invalid input parameters */
2927
+ /** @description Bad Request - Invalid input parameters, or service not offered for this country */
2959
2928
  400: {
2960
2929
  headers: {
2961
2930
  [name: string]: unknown;
2962
2931
  };
2963
2932
  content?: never;
2964
2933
  };
2965
- /** @description No documents found */
2966
- 404: {
2967
- headers: {
2968
- [name: string]: unknown;
2969
- };
2970
- content?: never;
2971
- };
2972
2934
  /** @description Internal server error */
2973
2935
  500: {
2974
2936
  headers: {
@@ -3009,25 +2971,18 @@ export interface operations {
3009
2971
  * @enum {string}
3010
2972
  */
3011
2973
  message: "success" | "search error";
3012
- /** @description Company base information object */
3013
- result?: components["schemas"]["CompanyBaseData"];
2974
+ /** @description Company base information object or null if not found */
2975
+ result?: components["schemas"]["Company"] | null;
3014
2976
  };
3015
2977
  };
3016
2978
  };
3017
- /** @description Bad Request - Invalid input parameters */
2979
+ /** @description Bad Request - Invalid input parameters, or service not offered for this country */
3018
2980
  400: {
3019
2981
  headers: {
3020
2982
  [name: string]: unknown;
3021
2983
  };
3022
2984
  content?: never;
3023
2985
  };
3024
- /** @description Company not found */
3025
- 404: {
3026
- headers: {
3027
- [name: string]: unknown;
3028
- };
3029
- content?: never;
3030
- };
3031
2986
  /** @description Internal server error */
3032
2987
  500: {
3033
2988
  headers: {
@@ -3053,7 +3008,6 @@ export interface operations {
3053
3008
  * It queries the scopes required for accessing the resources or services in question.
3054
3009
  * Available scopes: sub, fullnameAR, gender, mobile, lastnameEN, fullnameEN, uuid, lastnameAR, idn, nationalityEN, firstnameEN, userType, nationalityAR, firstnameAR, email.
3055
3010
  * (To be shared by UAEPASS Team if its value is other than specified in sample above)
3056
- *
3057
3011
  * @example sub fullnameEN email mobile
3058
3012
  */
3059
3013
  scope?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fill-easy/api",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for Fill Easy API",
6
6
  "main": "dist/index.js",